Closed guyhurst90 closed 3 weeks ago
fixed please update via the 3.10b branch
I tried the latest commit on 3.10b (035f5b43018ef8ef5c918c0b61b47c6317f9c698) but it gives a 400 Bad Request error trying to download (with or without scrape).
2024-06-05 20:28:00:[helpers.inner:11] Client error '400 Bad Request' for url 'https://onlyfans.com/api2/v2/users/me'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
2024-06-05 20:28:00:[helpers.inner:11] Traceback (most recent call last):
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/api/init.py", line 34, in getstatus
me.scrape_user()
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/api/me.py", line 33, in scrape_user
return _scraper_user_helper(c)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/api/me.py", line 53, in _scraper_user_helper
raise E
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/api/me.py", line 38, in _scraper_user_helper
with c.requests(constants.getattr("meEP")) as r:
File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/classes/sessionmanager.py", line 313, in requests
for _ in Retrying(
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/tenacity/__init__.py", line 435, in __iter__
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/tenacity/__init__.py", line 368, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/tenacity/__init__.py", line 410, in exc_check
raise retry_exc.reraise()
^^^^^^^^^^^^^^^^^^^
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/tenacity/__init__.py", line 183, in reraise
raise self.last_attempt.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/classes/sessionmanager.py", line 367, in requests
raise E
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/classes/sessionmanager.py", line 360, in requests
r.raise_for_status()
File "/home/luser/.local/pipx/venvs/ofscraper/lib/python3.12/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://onlyfans.com/api2/v2/users/me'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
2024-06-05 20:28:00:[checkers.check_auth:20] Auth Failed
Please read instructions https://gist.github.com/datawhores/8e8be131fb1b190b50c5324ab2ca5f89
Yeah, looks like changing rules to growik seems to have fixed that 400 error. With that out of the way it does look to successfully scrape the page, so closing this issue.
Describe the bug
Script crashes trying to scrape paid model page
To Reproduce
Using release 3.10, try to scrape paid model page.
Expected behavior
Script not to raise TypeError and crash
Screenshots/Logs
System Info