sniffingpickles / Auto-Amazon-Giveaways

Automated Amazon Giveaways using Python3 & Pyppeteer :gift: :snake:
6 stars 8 forks source link

Keeps cycling through the same giveaways #6

Open harminoff opened 6 years ago

harminoff commented 6 years ago

Hello,

Really liking the updates you are making to this, great job!

One thing though is that each time the bot goes to the next page it seems to cycle through all the same giveaways again (starting at page 1) and not just the new ones on the next page even though chrome is on the next page. Is this how it's supposed to work?

Also, any chance this could ever go headless?

harminoff commented 6 years ago

I fixed this by adding "self.ga_prizes.clear() " around line 340 after

msg = Fore.LIGHTGREEN_EX + Style.BRIGHT + " Moving to next giveaway page -> %s... " % (next_page_href)

It does seem to hang on ended giveaways, and doesn't display the output text. Here is an example page https://www.amazon.com/ga/p/7edbf556f2240660

dziban303 commented 6 years ago

Created pull request: #13

Haven't done a lot of testing with it yet. Will run it for a few hours and see...

Killerherts commented 6 years ago

what does this do and how does it compare to just selecting a random page