Giter Club home page Giter Club logo

Comments (11)

diversionmary avatar diversionmary commented on June 12, 2024 4

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.

endeavor51 avatar endeavor51 commented on June 12, 2024 3

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.

xb4r7x avatar xb4r7x commented on June 12, 2024 3

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.

endeavor51 avatar endeavor51 commented on June 12, 2024

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.

endeavor51 avatar endeavor51 commented on June 12, 2024

Should be fixed now.

https://old.reddit.com/r/redditdev/comments/mg077m/not_even_close_to_hitting_the_rate_limitbut_still/gstm1a9/

from shreddit.

scottjl avatar scottjl commented on June 12, 2024

i'm still getting it.. any idea where to add the delay?

from shreddit.

benninkcorien avatar benninkcorien commented on June 12, 2024

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.

xb4r7x avatar xb4r7x commented on June 12, 2024

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.

benninkcorien avatar benninkcorien commented on June 12, 2024

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.

phayzeeVW avatar phayzeeVW commented on June 12, 2024

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.

scottjl avatar scottjl commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.