Skip to content

AttributeError: 'Session' object has no attribute 'browser' #135

@xxxJef-dev

Description

@xxxJef-dev

Got an error when I tried to run the code

PS C:\Users\xJef2\Downloads\TinderBotz-dependabot-pip-pillow-10.2.0> & C:/Users/xJef2/AppData/Local/Programs/Python/Python39/python.exe c:/Users/xJef2/Downloads/TinderBotz-dependabot-pip-pillow-10.2.0/scraper.py
Getting ChromeDriver ...
Traceback (most recent call last):
File "c:\Users\xJef2\Downloads\TinderBotz-dependabot-pip-pillow-10.2.0\scraper.py", line 10, in
session = Session()
File "c:\Users\xJef2\Downloads\TinderBotz-dependabot-pip-pillow-10.2.0\tinderbotz\session.py", line 117, in init
self.browser = uc.Chrome(options=options) # ChromeDriverManager().install(),
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\site-packages\undetected_chromedriver_init_.py", line 258, in init
self.patcher.auto()
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\site-packages\undetected_chromedriver\patcher.py", line 178, in auto
self.unzip_package(self.fetch_package())
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\site-packages\undetected_chromedriver\patcher.py", line 287, in fetch_package
return urlretrieve(download_url)[0]
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 239, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 523, in open
response = meth(req, response)
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 632, in http_response
response = self.parent.error(
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 561, in error
return self._call_chain(*args)
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 494, in _call_chain
result = func(*args)
File "C:\Users\xJef2\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
/==============\

Tinderbotz
duration: 0
like: 0
dislike: 0
superlike: 0
==============/
Started session: 2024-02-25 18:22:44
Ended session: 2024-02-25 18:22:44
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "c:\Users\xJef2\Downloads\TinderBotz-dependabot-pip-pillow-10.2.0\tinderbotz\session.py", line 76, in cleanup
self.browser.quit()

AttributeError: 'Session' object has no attribute 'browser'

How to fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions