eyalzek / price-alert

Script to send an email when a price drops below a given value (tested on Amazon).
78 stars 34 forks source link

Didn't find the 'price' element, trying again later #12

Closed mfraser closed 4 years ago

mfraser commented 4 years ago

Tried to use the script this evening, but keep getting:

Didn't find the 'price' element, trying again later

Even though the xpath_selector seems the same. This is with UK site.

eyalzek commented 4 years ago

Please share a configuration that can be used to reproduce this

ysfr3 commented 4 years ago

Having the same issue. I have attached my config file with my credentials hidden. Everything was working fine yesterday.
Edit: Error still happens with the ID of "priceblock_ourprice" as well.

Config_File.zip

eyalzek commented 4 years ago

@codebankco I dumped the product page I get with the script and this is what I see: image

i.e there is no price on the product page. Are you outside of the USA region by any chance? When I connected via VPN to a US location it worked as expected.

ysfr3 commented 4 years ago

@eyalzek Thanks for the quick reply. I am inside the US region. Very strange. When I follow the URL it is shipped/sold by Amazon. This is what I am seeing from my view.
BUG

I'm not too sure why this is happening.

ysfr3 commented 4 years ago

Quick update. It isn't working for any product. I will do a fresh install of the repo and try again!

ysfr3 commented 4 years ago

Nope... Very strange.

Edit: I'm sorry for flooding this thread but I found my issue. Stupid me....

When reinstalling the script I forgot to change the User Agent to mine... The script is working just fine now. Thanks for the great script!