dkkocab / WebSiteBot_PS5

This is a bot that will buy a PS5 through Walmart. It's written in python and uses selenium to interact with web pages. *WORK IN PROGRESS*
342 stars 91 forks source link

Refresh To Fast #7

Closed Frazzer951 closed 3 years ago

Frazzer951 commented 3 years ago

The program refreshes the page so fast, that when a captcha appears you don't have enough time to fill it out be for the program refreshes

dkkocab commented 3 years ago

I can slow it down some more.

Liquid222 commented 3 years ago

I don't know if I'm supposed to talk here but I need some help I've been doing selenium for around a week now but I'm having some trouble. I wanted to know how I could make my lines execute when an item is in stock.

Liquid222 commented 3 years ago

Like exucute when the gamestop out of stock element is off the page

dkkocab commented 3 years ago

what’s your problem? but i added an update last night i think that will run the lines once the item is available. You just need to execute the code maybe 2 minutes prior to it launching. if it’s refreshing too fast, change the ClickAddItemToCart function except statement to sleep for a long amount of time (currently it’s 5 seconds)

-Alex Kocab

On Nov 23, 2020, at 11:31 PM, Liquid222 notifications@github.com wrote:

 I don't know if I'm supposed to talk here but I need some help I've been doing selenium for around a week now but I'm having some trouble. I wanted to know how I could make my lines execute when an item is in stock.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

dkkocab commented 3 years ago

Do you see the time.sleeps throughout the code?

-Alex Kocab

On Nov 24, 2020, at 1:36 AM, Liquid222 notifications@github.com wrote:

 Like exucute when the gamestop out of stock element is off the page

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.