Comments (11)
See here: https://github.com/pythonInRelay/Shreddit/issues/9
Add ratelimit_seconds=45 to your praw.ini within your username section. I also added to a [default] section at the top of my praw.ini. thx to @KenMacD
from shreddit.
I haven't had time to look at the code (never was very good with Python). I tried manipulating the cooldown feature unsuccessfully.
An maintained fork of Shreddit is available here: https://github.com/pythonInRelay/Shreddit But that fork doesn't have a fix for this yet either.
from shreddit.
And if you're like me, and ratelimit_seconds=45
didn't do anything, make sure your praw is up to date. pip3 install --upgrade praw
and you should be g2g.
from shreddit.
Reddit introduced rate-limiting on their API about 4 days ago. Rumor has it it was due to a bot earlier this week who edited comments with the usernames of every Reddit account to spam chat requests.
Current API limitations have write actions (post/edit) limited to 1 every 30 seconds. This isn't limited to apps, even old.reddit.com/ blocks users in the interface from editing more than once every 30 sec.
To fix, Shreddit will need to add a delay timer, hopefully with a programmable variable to be included in shreddit.yml.
Unfortunately, I think the app is no longer in development, so here's hoping some fork fixes it.
from shreddit.
Should be fixed now.
from shreddit.
i'm still getting it.. any idea where to add the delay?
from shreddit.
rate_limit_seconds in praw.ini didn't help me.
I added a few
time.sleep(4)
to shredder.py so that it sleeps for 4 seconds after each edit. That seems to have fixed it. It just takes a little longer now.
(shredder.py is located in C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\Lib\site-packages\shreddit on windows)
from shreddit.
Did you make sure that praw was up to date? The rate_limit_seconds
thing only works in more recent versions. Your work around works, but is kinda silly when the functionality is already baked in.
from shreddit.
I installed everything today, but didn't check the praw version in requirements.text - will see if I can update, thank you!
Edit - went from v5x to v7x ... I've already ran shreddit so can't test at the moment, but I'll assume setting the rate limit in praw.ini works better.
from shreddit.
I also ran into this problem today. praw version is up-to-date, rate_limit_seconds = 45
is set in praw.ini
, but I can't still run it.
it seems that adding time.sleep(4)
works, but it is very slow.
EDIT: changed time.sleep(4)
to time.sleep(2)
to speed-up the process and it works just fine
from shreddit.
strange. the delay time must somehow be tied to the reddit account itself. other than adjusting mine from 31 to 45 i haven't made any other changes and it runs just fine. i run it once a night at 2am via cron. it sweeps up messages and posts.
from shreddit.
Related Issues (20)
- Can't run, AttributeError HOT 6
- Updated to ubuntu 20 - get error HOT 3
- Issue with requirements file HOT 1
- Error when trying to clear a vote that cannot be cleared. HOT 1
- Read-Only File system? HOT 1
- Delete private messages? HOT 1
- [NOTE] My fork of this repo with updates still works fine HOT 3
- Can a Whitelist ID Example be added to the ReadMe or in the Shreddit.yml file? HOT 2
- Problem with Arrow library HOT 2
- Can't quite figure it out HOT 7
- This script removed my most recent comment even though I set a minimum age of 3 years HOT 1
- ValueError: Unknown attribute: 'hours'.? HOT 9
- zsh: command not found when trying to setup cron
- TypeError
- whitelist seems to be ignored HOT 1
- mistakenly created
- Use my repo. This one has been broken for years. HOT 10
- I rewrote it in Rust HOT 1
- Could you do this for Twitter? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shreddit.