llalon Posted August 27, 2021 Share Posted August 27, 2021 (edited) Overview: Support thread for llalon-shreddit Application: https://github.com/llalon/Shreddit Docker Hub: https://hub.docker.com/r/llalon/shreddit GitHub: https://github.com/llalon/docker-templates/tree/main/shreddit Purge reddit comment history. Instructions: Obtain an access token from here Provide token, credentials, and run interval to the plugin Further configuration can be found in appdata/llalon-shreddit/shreddit.yml Use cron to schedule. Feel free to comment here if you need any assistance. Edited February 25, 2022 by llalon update Quote Link to comment
ffhelllskjdje Posted September 13, 2021 Share Posted September 13, 2021 Getting this error every time i run Traceback (most recent call last): File "/usr/bin/shreddit", line 11, in <module> load_entry_point('shreddit==6.0.7', 'console_scripts', 'shreddit')() File "/usr/lib/python3.6/site-packages/shreddit/app.py", line 45, in main shredder.shred() File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 68, in shred deleted = self._remove_things(self._build_iterator()) File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 166, in _remove_things self._remove(item) File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 137, in _remove self._remove_comment(item) File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 124, in _remove_comment comment.edit(replacement_text) File "/usr/lib/python3.6/site-packages/praw/models/reddit/mixins/editable.py", line 20, in edit updated = self._reddit.post(API_PATH['edit'], data=data)[0] File "/usr/lib/python3.6/site-packages/praw/reddit.py", line 432, in post return self._objector.objectify(data) File "/usr/lib/python3.6/site-packages/praw/objector.py", line 122, in objectify raise APIException(*errors[0]) praw.exceptions.APIException: RATELIMIT: 'Looks like you've been doing that a lot. Take a break for 3 seconds before trying again.' on field 'ratelimit' Quote Link to comment
llalon Posted September 15, 2021 Author Share Posted September 15, 2021 On 9/13/2021 at 7:50 PM, ffhelllskjdje said: Getting this error every time i run Traceback (most recent call last): File "/usr/bin/shreddit", line 11, in <module> load_entry_point('shreddit==6.0.7', 'console_scripts', 'shreddit')() File "/usr/lib/python3.6/site-packages/shreddit/app.py", line 45, in main shredder.shred() File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 68, in shred deleted = self._remove_things(self._build_iterator()) File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 166, in _remove_things self._remove(item) File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 137, in _remove self._remove_comment(item) File "/usr/lib/python3.6/site-packages/shreddit/shredder.py", line 124, in _remove_comment comment.edit(replacement_text) File "/usr/lib/python3.6/site-packages/praw/models/reddit/mixins/editable.py", line 20, in edit updated = self._reddit.post(API_PATH['edit'], data=data)[0] File "/usr/lib/python3.6/site-packages/praw/reddit.py", line 432, in post return self._objector.objectify(data) File "/usr/lib/python3.6/site-packages/praw/objector.py", line 122, in objectify raise APIException(*errors[0]) praw.exceptions.APIException: RATELIMIT: 'Looks like you've been doing that a lot. Take a break for 3 seconds before trying again.' on field 'ratelimit' This is known issue, I am working with upstream for a solution. In the meantime, you can increase the run frequency as this script should still function on the first few runs before hitting this limit. Quote Link to comment
s449 Posted February 24, 2022 Share Posted February 24, 2022 This seemed to stop working for me. Haven't changed anything but the logs are now just: Writing shreddit.yml file... Writing praw.ini file... Traceback (most recent call last): File "/usr/local/bin/shreddit", line 33, in <module> sys.exit(load_entry_point('shreddit==6.0.7', 'console_scripts', 'shreddit')()) File "/usr/local/lib/python3.9/dist-packages/shreddit/app.py", line 44, in main shredder = Shredder(default_config, args.user) File "/usr/local/lib/python3.9/dist-packages/shreddit/shredder.py", line 28, in __init__ self._connect() File "/usr/local/lib/python3.9/dist-packages/shreddit/shredder.py", line 80, in _connect self._r = praw.Reddit(self._user, check_for_updates=False, user_agent="python:shreddit:v6.0.4") File "/usr/local/lib/python3.9/dist-packages/praw/reddit.py", line 150, in __init__ raise ClientException(required_message.format(attribute)) praw.exceptions.ClientException: Required configuration setting 'client_id' missing. This setting can be provided in a praw.ini file, as a keyword argument to the `Reddit` class constructor, or as an environment variable. Looking inside the Docker, my praw.ini file is empty. But my docker config is set up with all that information. Maybe it's not connecting somehow? Quote Link to comment
llalon Posted February 25, 2022 Author Share Posted February 25, 2022 On 2/23/2022 at 8:30 PM, s449 said: This seemed to stop working for me. Haven't changed anything but the logs are now just: Writing shreddit.yml file... Writing praw.ini file... Traceback (most recent call last): File "/usr/local/bin/shreddit", line 33, in <module> sys.exit(load_entry_point('shreddit==6.0.7', 'console_scripts', 'shreddit')()) File "/usr/local/lib/python3.9/dist-packages/shreddit/app.py", line 44, in main shredder = Shredder(default_config, args.user) File "/usr/local/lib/python3.9/dist-packages/shreddit/shredder.py", line 28, in __init__ self._connect() File "/usr/local/lib/python3.9/dist-packages/shreddit/shredder.py", line 80, in _connect self._r = praw.Reddit(self._user, check_for_updates=False, user_agent="python:shreddit:v6.0.4") File "/usr/local/lib/python3.9/dist-packages/praw/reddit.py", line 150, in __init__ raise ClientException(required_message.format(attribute)) praw.exceptions.ClientException: Required configuration setting 'client_id' missing. This setting can be provided in a praw.ini file, as a keyword argument to the `Reddit` class constructor, or as an environment variable. Looking inside the Docker, my praw.ini file is empty. But my docker config is set up with all that information. Maybe it's not connecting somehow? Try newest update Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.