Search found 53 matches

by daws0n
2024-05-29 20:01:30
Forum: Ant Movie Catalog > Scripts
Topic: Help sought with textbetween and wildcards / whitespace trim?
Replies: 1
Views: 943

Help sought with textbetween and wildcards / whitespace trim?

I am attempting to work on a script to parse details from HTML pages using "textbetween" variables.

E.g, if I want to scrape the following for value "84"


<button slot="Score" data-Manager="overlayOpen:click" theme="transparent">
<theme="medium">84%</info>


The script below works, but I am ...
by daws0n
2021-02-07 12:08:22
Forum: Ant Movie Catalog > Help
Topic: Field case conversion?
Replies: 1
Views: 6109

Re: Field case conversion?

Ok looks like I've found a solution

setCustomField('CustomUrl', AnsiLowerCase(GetCustomField('CustomUrl')))
by daws0n
2021-02-07 12:00:16
Forum: Ant Movie Catalog > Help
Topic: convert the movie title into lower case ?
Replies: 9
Views: 8614

Re: convert the movie title into lower case ?

could you upload this script again please?
by daws0n
2021-02-07 11:55:33
Forum: Ant Movie Catalog > Help
Topic: Field case conversion?
Replies: 1
Views: 6109

Field case conversion?

I would like to convert a custom field I've made from mixed case to lower case across my catalog.

Is this possible to do this via scripting?

Thanks
by daws0n
2017-09-06 21:38:44
Forum: Ant Movie Catalog > Scripts
Topic: GetPage function broken for rotten tomatoes
Replies: 3
Views: 1361

Strange isn't it? The getpage works fine with all other SSL sites I have tried except this one. Not sure what makes this site different. Maybe they have some strict user agent criteria?
by daws0n
2017-09-04 09:27:20
Forum: Ant Movie Catalog > Scripts
Topic: GetPage function broken for rotten tomatoes
Replies: 3
Views: 1361

GetPage function broken for rotten tomatoes

Last year I made a script to scrape rotten tomatoes movie URLs for ratings etc... It worked well, but broke suddenly when the site became SSL only.

I updated Ant Movie Catalog to 4.2.1 beta for SSL compatibility, however the get page function for this site is still broken (it works for other ...
by daws0n
2016-06-10 00:27:01
Forum: Ant Movie Catalog > Scripts
Topic: Working on a rotten tomatoes script... Now broke due to SSL?
Replies: 5
Views: 4015

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 ...
by daws0n
2016-06-09 23:36:19
Forum: Ant Movie Catalog > Scripts
Topic: Working on a rotten tomatoes script... Now broke due to SSL?
Replies: 5
Views: 4015

Script definitley halts at the get page line.

E.g

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 ...
by daws0n
2016-06-09 23:24:25
Forum: Ant Movie Catalog > Scripts
Topic: Working on a rotten tomatoes script... Now broke due to SSL?
Replies: 5
Views: 4015

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?
by daws0n
2016-06-09 23:16:44
Forum: Ant Movie Catalog > Scripts
Topic: Working on a rotten tomatoes script... Now broke due to SSL?
Replies: 5
Views: 4015

A quick search on the forum appears to answer my question

https://forum.antp.be/phpbb3/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 ...
by daws0n
2016-06-09 23:09:17
Forum: Ant Movie Catalog > Scripts
Topic: Working on a rotten tomatoes script... Now broke due to SSL?
Replies: 5
Views: 4015

Working on a rotten tomatoes script... Now broke due to SSL?

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 ...
by daws0n
2015-10-12 11:53:10
Forum: Ant Movie Catalog > Scripts
Topic: How to reference HTML page cached on local HDD within script
Replies: 3
Views: 2549

I've worked around it by enabling localhost and placing the files in C:\inetpub\wwwroot
by daws0n
2015-10-12 11:08:10
Forum: Ant Movie Catalog > Scripts
Topic: How to reference HTML page cached on local HDD within script
Replies: 3
Views: 2549

s := GetField(fieldOriginalTitle);
page := GetPage('D:\amctest\3.5 star.htm');
value := textbetween(page, '<h1 id="search-results">', '<hr class="no-css" />');
value := FullTrim(value);
i := Pos(s, value);
if i > 1 then
begin
setCustomField('JBStarRating', '3.5');
end;
end.

Basically, if there ...
by daws0n
2015-10-12 10:57:00
Forum: Ant Movie Catalog > Scripts
Topic: How to reference HTML page cached on local HDD within script
Replies: 3
Views: 2549

How to reference HTML page cached on local HDD within script

I have created a crude script to pull down * ratings from a website into a custom field in my catalog.

It works, but I don't really want to hammer the site with queries. Since the script points to a static address/webpage, I have saved the the single page of HTML code to my HDD.

How can I ...
by daws0n
2015-09-30 18:31:45
Forum: Ant Movie Catalog > Scripts
Topic: [REQ] Rotten tomatoes import script
Replies: 3
Views: 2874

Success! :)
by daws0n
2015-09-30 18:13:47
Forum: Ant Movie Catalog > Scripts
Topic: [REQ] Rotten tomatoes import script
Replies: 3
Views: 2874

I guess the easiest way to do with would be to take the fieldURL as-is and simply truncate the first 24 characters... This would leave just the title code left.

I will do some digging on this, any help would be greatly appreciated.
by daws0n
2015-09-30 17:59:38
Forum: Ant Movie Catalog > Scripts
Topic: [REQ] Rotten tomatoes import script
Replies: 3
Views: 2874

With some careful studying I have made something that works!

However, one caveat remains: the way I have coded it means that the script is dependant on manually entering the imdb title code (e.g 0093870) in order to pull down the API page.

Can this value be copied then truncated from the pre ...
by daws0n
2015-09-21 21:01:45
Forum: Ant Movie Catalog > Scripts
Topic: [REQ] Rotten tomatoes import script
Replies: 3
Views: 2874

[REQ] Rotten tomatoes import script

Could any experienced scripters tell me if it's possible to import rotten tomatoes movie data into AMC?

Long ago, I created a greasemonkey script to convert any imdb links to to rotten tomatoes links by modifying the URL. This ability is now broke on the site, but I have recently changed it to ...
by daws0n
2015-01-06 19:59:25
Forum: Ant Movie Catalog > Scripts
Topic: Splitting current field into two for custom field creation
Replies: 3
Views: 2173

sorted :)

Code: Select all

GetCustomField('Custom1');
by daws0n
2015-01-06 19:14:48
Forum: Ant Movie Catalog > Scripts
Topic: Splitting current field into two for custom field creation
Replies: 3
Views: 2173

Thanks Antp! Am I able to manipulate custom fields using scripts aswell? At present I cannot get the script to identify the new custom field by it's tag name (Custom1).