RedditArchiver-standalone
RedditArchiver-standalone copied to clipboard
[x] Uncaught problem: received 429 HTTP response
Hello
Firstly, thank you for sharing this wonderful code. It does work and its the closest ive found to being the perfect solution to my needs Now, i have this problem. I believe it relates to the Reddit API. I had no issues downloading posts that i had submitted, but when i tried to download posts that i had saved, i encountered this. I ran it a second time and it happened again. The below is the code from the second time. To be clear, i did not have multiple instances of this running. Just the one.
Is it possible that this is in relation to too many comments? Is there a limit. I might be totally off course here.
PRAW: Latest version 7.8.1
Any help would be awesome and appreciated, thank you again
[x] Uncaught problem: received 429 HTTP response
Traceback (most recent call last):
File "E:\Downloads\RedditArchiver-standalone-2.0.2\RedditArchiver-standalone-2.0.2\RedditArchiver.py", line 415, in <module>
submission, comments_index, comments_forest = download_submission(submission, submission_id)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Downloads\RedditArchiver-standalone-2.0.2\RedditArchiver-standalone-2.0.2\RedditArchiver.py", line 168, in download_submission
submission.comments.replace_more(limit=None)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\util\deprecate_args.py", line 46, in wrapped
return func(**dict(zip(_old_args, args)), **kwargs)
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\models\comment_forest.py", line 192, in replace_more
new_comments = item.comments(update=False)
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\util\deprecate_args.py", line 46, in wrapped
return func(**dict(zip(_old_args, args)), **kwargs)
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\models\reddit\more.py", line 79, in comments
self._comments = self._reddit.post(API_PATH["morechildren"], data=data)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\util\deprecate_args.py", line 46, in wrapped
return func(**dict(zip(_old_args, args)), **kwargs)
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\reddit.py", line 861, in post
return self._objectify_request(
~~~~~~~~~~~~~~~~~~~~~~~^
data=data,
^^^^^^^^^^
...<4 lines>...
path=path,
^^^^^^^^^^
)
^
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\reddit.py", line 514, in _objectify_request
self.request(
~~~~~~~~~~~~^
data=data,
^^^^^^^^^^
...<4 lines>...
path=path,
^^^^^^^^^^
)
^
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\util\deprecate_args.py", line 46, in wrapped
return func(**dict(zip(_old_args, args)), **kwargs)
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\reddit.py", line 963, in request
return self._core.request(
~~~~~~~~~~~~~~~~~~^
data=data,
^^^^^^^^^^
...<4 lines>...
path=path,
^^^^^^^^^^
)
^
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\prawcore\sessions.py", line 328, in request
return self._request_with_retries(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
data=data,
^^^^^^^^^^
...<5 lines>...
url=url,
^^^^^^^^
)
^
File "C:\Users\myname\AppData\Local\Programs\Python\Python313\Lib\site-packages\prawcore\sessions.py", line 267, in _request_with_retries
raise self.STATUS_EXCEPTIONS[response.status_code](response)
prawcore.exceptions.TooManyRequests: received 429 HTTP response
Hello!
I notice there have been recently issues reported with the PRAW library.
Could you try running the following command and try using RedditArchiver again?
- On Windows:
py -3 -m pip install prawcore==3.0.1 --no-deps - On Linux:
python3 -m pip install prawcore==3.0.1 --no-deps
Hello!
I notice there have been recently issues reported with the PRAW library.
Could you try running the following command and try using RedditArchiver again?
* On Windows: `py -3 -m pip install prawcore==3.0.1 --no-deps` * On Linux: `python3 -m pip install prawcore==3.0.1 --no-deps`
Thanks for the message. I'll try this tonight and report back. Have a good day
Hello!
I notice there have been recently issues reported with the PRAW library.
Could you try running the following command and try using RedditArchiver again?
* On Windows: `py -3 -m pip install prawcore==3.0.1 --no-deps` * On Linux: `python3 -m pip install prawcore==3.0.1 --no-deps`
Seems to be working so far. What was the code you suggested actually doing?