jpchip / giveaway-grabber

Automated Amazon Giveaways using Node & Puppeteer (until 10/17/19) 🎁
MIT License
74 stars 20 forks source link

You didn't win followed by can't find result #103

Closed famewolf closed 5 years ago

famewolf commented 5 years ago

I ran through the sweeps starting around midnight. It created the database and seemed to work fine. This morning I decided to run the app again to see what would happen. My assumption was the majority would be skipped but that's not what happened:

giveaway-grabber@4.0.1 start /home/famewolf/giveaway-grabber node index.js

No email field Page 1 Start: giveaway 1 is ready! waiting for video (~15 secs)... could not find #youtube-iframe, trying other selectors... could not find .youtube-video could not find #airy-container Rudi, you didn't win could not get result, oh well. Moving on! giveaway 2 is blacklisted [for women]. giveaway 3 is ready! waiting for box... Rudi, you didn't win could not get result, oh well. Moving on! lets try that again. waiting for box... could not find box? Rudi, you didn't win could not get result, oh well. Moving on! giveaway 4 is ready! waiting for box... Rudi, you didn't win could not get result, oh well. Moving on! lets try that again. waiting for box... could not find box? Rudi, you didn't win could not get result, oh well. Moving on! giveaway 5 is ready! waiting for box... Rudi, you didn't win could not get result, oh well. Moving on! lets try that again. waiting for box...

jpchip commented 5 years ago

Not surprising at all, new giveaways are added all the time, and sometimes in surprisingly random spots.

You can see that the db works by starting a page, letting it run through for awhile, stop it, then restart on the same page. It will skip all the ones it already went over.

famewolf commented 5 years ago

The issue is on the same giveaway it's telling me I didn't win (which is correct) followed immediately by could not get result (incorrect).

jpchip commented 5 years ago

Ahh whoops missed that at first. Weird!

famewolf commented 5 years ago

It's been consistent every time I start the program since so I'll be downgrading to the version before 4.0.

Issue still occurs @ commit db08aec52c97a594ab3944c020064a4738260164 Works as expected @ commit 767b11a497d6a8955d3126f9398e5041986bc108

jpchip commented 5 years ago

I'll try to take a look tomorrow!

rinoma commented 5 years ago

I'll also take a look at it tomorrow. I'm trying to do it right now, but I'm not getting the same error.

famewolf commented 5 years ago

The scenario was:

1) Upgraded to latest version via "git pull origin master" 2) npm start (which downloaded new puppeteer and chromium) 3) It created the database and seemed to be running ok. I let it get a couple pages done and cancelled it with ctrl-c 4) Restarted it with npm start to see if it skipped the initial page ...as I recall it did but then for new sweeps it started showing both a found result and an unfound result back to back on each sweep. 5) Deleted the database and tried it again...it continued to give both results so I downgraded to previous non database version via "git checkout XXXXXXXXXXXXXXXXXXXX" 5) Deleted database and ran npm start. 6) Process worked as it should.

jpchip commented 5 years ago

I have been tinkering around and I can't duplicate this issue. :( I did find a couple of other little things wrong so it wasn't a total waste of time. Will keep messing around with it.

victorka143 commented 5 years ago

Hi, I have been running the program for 2 days and over 3000 entry but i didn't receive any email if i won anything. I was wondering if there is anyway to see a log file in case i won anything. I checked the folders to see if there was any output but i couldn't find anything. Or can i test the mail server if it works correctly?

jblount12 commented 5 years ago

I've been having this issue and also noticed it also doesn't recognize a win. I've had to revert to an older version in order to get the notification emails on a win.

jpchip commented 5 years ago

Latest version writes winning entries to a wins.txt file in the directory you are running the script.

jpchip commented 5 years ago

Closing this ticket as it's the same as #108