dtbaker / envato-scraper

Simple PHP class to get your Envato statement and ratings
http://dtbaker.net
42 stars 12 forks source link

Unable to log in #3

Closed WebFactoryLtd closed 11 years ago

WebFactoryLtd commented 11 years ago

A few days ago the scraper stopped working for me :( I've been trying to debug it for hours without any luck. Checked and rechecked everything. Does anybody else have similar problems or is it just me?

Thanks!

dtbaker commented 11 years ago

I'll try test it tonight and see what happens. I had an issue a while back and deleting all temporary script files helped. Also logged in and out of Envato a few times in a browser. On 28/09/2013 1:01 AM, "WebFactoryLtd" notifications@github.com wrote:

A few days ago the scraper stopped working for me :( I've been trying to debug it for hours without any luck. Checked and rechecked everything. Does anybody else have similar problems or is it just me?

Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/dtbaker/envato-scraper/issues/3 .

WebFactoryLtd commented 11 years ago

Thank you!! I gave it a good couple of hours to no avail ;( I really don't see any changes done on Envato's end. Only thing I managed to get is a couple of "wrong username/password" situations when that just wasn't true.

I deleted all cache files and tried a couple accounts ...

WebFactoryLtd commented 11 years ago

Payed a guy to fix it. Since it's 1AM I haven't looked at the changes but I can confirm it works. He mentioned Envato added some redirects ... I'll try to upload the changed file.

WebFactoryLtd commented 11 years ago

I've created a fork and uploaded the new file.

dtbaker commented 11 years ago

Sweet, yep the fix is probably these two additions:

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

My script is still "logged in" so it hasn't had a problem just yet. Once I get logged out I'll copy over these changes to my running script. Cheers.