Hari-Nagarajan / fairgame

Tool to help us buy hard to find items.
GNU General Public License v3.0
2.44k stars 805 forks source link

How to change the page refresh rate? #813

Closed alphaprime6 closed 3 years ago

alphaprime6 commented 3 years ago

image

Problem Opened the amazon.py file cranked up all the settings from defaultmax.... to default_max... Ran the program and it still fails to delay on the refresh The only variable that seems to make a difference in the login delay is the DEFAULT_PAGE_WAIT_DELAY = 0.5 How do i change the refresh rate of the program to avoid being aggressive and drawing the attention of amazon I was asked to verify if i was human recently but no real signs of an issue yet

Expectation I will at least like the program to refresh pages every 5 minutes or so

Desktop (please complete the following information):

Context: I am a big fan of fairgame because that is what it is a fairgame and i have been trying to get my hands on the PS5 for a while and it just seems impossible and amazon as a corporation might not understand the value of a person like Hari who realized that the game might be rigged.

Feedback will be appreciated.

DakkJaniels commented 3 years ago

Why would you open the amazon.py file and start making changes to the code, before looking at the readme to see if this is covered in it already?

alphaprime6 commented 3 years ago

i looked at the read me. either way, the bot is too aggressive.

alphaprime6 commented 3 years ago

its not covered in the readme all you give are the consequences of it being aggressive. I need a way to change the agrression.

DakkJaniels commented 3 years ago

Ctrl-F Delay

alphaprime6 commented 3 years ago

i saw it. it is using the shell script, dumb me, I just dont understand this program at all and how you linked py code to shell but i guess i am so dumb. I added --delay FLOAT 50 is this the right syntax? Moreover its too late as i now have to link another account

DakkJaniels commented 3 years ago

No, look at the examples in the readme right after the list of options.

alphaprime6 commented 3 years ago

@DakkJaniels gracias/thank you amigo. I found the example.

You are a lifesaver.

You guys are gonna need to teach me your secrets of understanding this stuff.

alphaprime6 commented 3 years ago

Thanks i will close the issue.

DakkJaniels commented 3 years ago

You guys are gonna need to teach me your secrets of understanding this stuff.

The secret is reading documentation carefully and thoroughly, and using search to try and find if keywords are in documents (and trying different keywords). And Google for general Python stuff.