timur-tabi / amazon-vine

Script to check list of available product on Amazon Vine and notify you if a new item becomes available.
GNU General Public License v3.0
19 stars 7 forks source link

Why the sw do not open a webpage or image to solve captcha? #12

Open zyzzando opened 6 years ago

zyzzando commented 6 years ago

Hi Timur, I am not an expert of Python but when a captcha is found in singIn page your script do not give the possibility to the user to solve it. I found that in the code there are not a call to the function "solve_captcha". How can I solve this problem?

timur-tabi commented 6 years ago

I haven't seen a captcha at all this year. I'm surprised you've seen one, the browsercookie feature should eliminate the need for captchas.

Anyway, solve_captcha is definitely there, on line 101, and there's a call to it on line 200. Can you please post the error log?

zyzzando commented 6 years ago

Ok timur I will post the error but for now captcha disappeared again !

User2020 commented 6 years ago

I've seen the captcha on Amazon when I run VPN, but that's the only time.

timur-tabi commented 6 years ago

Well, there's not much I can do if I can't reproduce the problem. I'm no Python expert, and the error handling in my script is not robust. I don't want to add a lot of code to handle occasional errors. When I run the script, I do it like this:

#!/bin/sh
export AMAZON_EMAIL=xxx
export AMAZON_PASSWORD=xxx
export DEATHBYCAPTCHA_USERID=xxx
export DEATHBYCAPTCHA_PASSWORD=xxx
while :
do
    date
    python amazon-vine.py $*
done

So if the script every fails, it just restarts. This eliminates the need for complicated error handling code.

zyzzando commented 6 years ago

I think that you are genius