pagodo icon indicating copy to clipboard operation
pagodo copied to clipboard

Rotate through all given proxies before letting yagoogle handle the waiting

Open sporetec opened this issue 3 years ago • 4 comments

This rework lets pagodo:

  • Have a new flag and argument to divide the wanted wait time by the amount of unblocked proxies and recalculate on a proxy being blocked. Default behavior stays unchanged
  • Rotate through all given proxies before letting yagoogle handle the 429 to reduce execution time

sporetec avatar Aug 17 '22 14:08 sporetec

Thanks for submitting a PR @sporetec! Just a heads up, it may be a week or two until I can take a good look at it.

opsdisk avatar Aug 17 '22 23:08 opsdisk

Hey @sporetec - haven't forgotten about this! Hoping to dig into the PR soon.

opsdisk avatar Sep 16 '22 20:09 opsdisk

@sporetec - Would it be possible to tackle this feature first?

"Rotate through all given proxies before letting yagoogle handle the 429 to reduce execution time"

To be clear, you don't want the script to automatically go to sleep if an HTTP 429 is detected, especially if there are other proxies that can be tried?

As it is currently written, since yagooglesearch_manages_http_429s is not set during the instantiation of a yagooglesearch.SearchClient object (like is done here https://github.com/opsdisk/pagodo/blob/master/pagodo.py#L200), it defaults to True https://github.com/opsdisk/yagooglesearch/blob/master/yagooglesearch/init.py#L82

opsdisk avatar Sep 29 '22 22:09 opsdisk

would be good to get this into master

senf666 avatar Apr 08 '24 21:04 senf666