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

Incomplete read #14

Open zyzzando opened 6 years ago

zyzzando commented 6 years ago

Hi timur, recently your great script give me an incomplete read error very often. This error close the script. The error in on line: html = response.read() Are there any workaround for this error?

timur-tabi commented 6 years ago

Well, since the login stuff changed, the script is generally broken now. An error from response.read() means the low-level HTTP fetch failed, and there's not much I can do about that. When I run the script now, I'm seeing this:

Fri Dec  1 15:39:30 CST 2017
Using BeautifulSoup version 4.2.1
Using mechanize version 0.2.5
No handlers could be found for logger "fake_useragent"
Please install or update the fake_useragent package from
https://pypi.python.org/pypi/fake-useragent
Maximum amount of retries reached

And the script just aborts. I suggest you stop using the script until I can patch it.

zyzzando commented 6 years ago

On amazon it, the script still works but as I said it fails very ofted due this type of error. Are you saying that on amazon usa it does not work at all?

timur-tabi commented 6 years ago

It looks like Amazon USA is switching to a two-step login, where first they ask for your email, then you hit submit, and then on a second page, they ask for your password. But this doesn't happen all the time.

zyzzando commented 6 years ago

In this case on amazon.it is the same!