Page 1 of 1
Working on a rotten tomatoes script... Now broke due to SSL?
Posted: 2016-06-09 23:09:17
by daws0n
Hey guys
I've recently made an ant movie catalog script that scrapes a rotten tomatoes movie via it's URL (e.g
http://www.rottentomatoes.com/m/1009293-hawaii/) and adds info to some custom fields I have created within my AMC database.
All has been working well so far, but recently it looks like rotten tomatoes site has gone all SSL. Now the script no longer works and throws an error:
"io handler is not valid"
I'm guessing the GetPage function is now broken?
s := GetCustomField('RTURL');
page := GetPage(s);
Any ideas how I can get around this?
Thanks!
Posted: 2016-06-09 23:16:44
by daws0n
A quick search on the forum appears to answer my question
viewtopic.php?t=5995
Visit poster's website AMC does not support HTTPS currently (except if soulsnake added it and I'm not aware of it?)
How sad! I put a quite a few hours into making my script and had planned to put it on here soon as it's been working well.
I know nothing about coding per se but would love to see https support added to this great program of yours. Is there anything I do to contribute?
Posted: 2016-06-09 23:24:25
by daws0n
OK some more research my end... It appears that the 4.2.1 beta supports SSL?
I have downloaded it and attempted to run my script again, this time a new error:
"Error connecting with SSL"
Do I need to modify the code to use this new feature?
Posted: 2016-06-09 23:36:19
by daws0n
Script definitley halts at the get page line.
E.g
Code: Select all
page := GetPage('https://www.rottentomatoes.com/m/1009293-hawaii/');
Any assistance would be great appreciated!
Assuming this is fixable antp / soulsnake, how would I go about publishing my script? It works well, but is not really useable "out of the box" so to speak as it relies on a number of custom fields I created to import the information into the database.
Posted: 2016-06-10 00:27:01
by daws0n
This is very strange.
page := GetPage('
https://www.rottentomatoes.com/') throws the same error
however a few other different sites do not
e.g
page := GetPage('
https://www.ebay.com/');
page := GetPage('
https://www.paypal.com/');
page := GetPage('
https://www.facebook.com/');
It appears that
https://www.rottentomatoes.com is rejecting the new OpenSSL feature. I wonder why that is?
Posted: 2016-06-10 12:58:38
by deadeye
I had a minimal RT script and had the same problem.
It seems "http" still works, you just have to be sure that's what you're asking for.
Mine was failing when trying to get the image because that link had "https" in it. Converted it to just "http" and it worked.