IMDB Script not working
-
- Posts: 2
- Joined: 2017-12-18 18:41:05
Yes that's still in the to-do listjoeray6948 wrote:Comments field just show "USER COMMENTS". Nothing is filled in this field.
cf this change:phil5660 wrote:Everything seems fine, except for the "actors" field : only 3 or 4 actors are downloaded...
antp wrote: I modified the "AllActors" option so 0 = stars from the top of the page, as the old 0 option had no use anymore (we import all info from the "/reference" movie page and not from the main movie page)
Options 1 and 2 still take respectively all actors and first 10 actors (number configurable via a constant in the script, in case you were previously using AllActors=0 for getting the first 15 actors).
Import of Original title not work fine in all the movies I try, always import this text before the translated title (for me translated it's Spanish), year and original title
Find industry contacts & talent representationManage your photos, credits, & moreShowcase yourself on IMDb & AmazonGo to IMDbPro | Help Sign in with Facebook Other Sign in options doWithAds(function(){if ('injected_slot' != 'injected_slot') {ad_utils.register_ad('injected_navstrip');}}); doWithAds(function(){if ('injected_slot' == 'injected_slot') {ad_utils.inject_ad.register('injected_navstrip');} else {ad_utils.gpt.render_ad('injected_navstrip');}}, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); if (typeof uet == 'function') { uet("ne"); } doWithAds(function(){if ('injected_slot' != 'injected_slot') {ad_utils.register_ad('injected_billboard');}}); doWithAds(function(){if ('injected_slot' == 'injected_slot') {ad_utils.inject_ad.register('injected_billboard');} else {ad_utils.gpt.render_ad('injected_billboard');}}, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); La espada del dragón (2011) Long men fei jia
http://www.imdb.com/title/tt1686784/reference
Find industry contacts & talent representationManage your photos, credits, & moreShowcase yourself on IMDb & AmazonGo to IMDbPro | Help Sign in with Facebook Other Sign in options doWithAds(function(){if ('injected_slot' != 'injected_slot') {ad_utils.register_ad('injected_navstrip');}}); doWithAds(function(){if ('injected_slot' == 'injected_slot') {ad_utils.inject_ad.register('injected_navstrip');} else {ad_utils.gpt.render_ad('injected_navstrip');}}, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); if (typeof uet == 'function') { uet("ne"); } doWithAds(function(){if ('injected_slot' != 'injected_slot') {ad_utils.register_ad('injected_billboard');}}); doWithAds(function(){if ('injected_slot' == 'injected_slot') {ad_utils.inject_ad.register('injected_billboard');} else {ad_utils.gpt.render_ad('injected_billboard');}}, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); La espada del dragón (2011) Long men fei jia
http://www.imdb.com/title/tt1686784/reference
For me it works fine, except an accent problem if I set "UserCountry" to 'Spain'.
Do you have the version 4.002 of the script?
If so, can you send me the contents of the HTML page via e-mail? (in a zip file, either do a Save As and select to save the page without images, or copy/paste what is in the "view source" of your browser)
As IMDb tends to change the contents based on the country, maybe there is a small detail that cause a problem in the script.
Do you have the version 4.002 of the script?
If so, can you send me the contents of the HTML page via e-mail? (in a zip file, either do a Save As and select to save the page without images, or copy/paste what is in the "view source" of your browser)
As IMDb tends to change the contents based on the country, maybe there is a small detail that cause a problem in the script.
It worked fine yesterday, but I have the same error today, when trying for example the movie 'Bigfoot Junir', I have
Find industry contacts & talent representationManage your photos, credits, & moreShowcase yourself on IMDb & AmazonGo to IMDbPro | Help Sign in with Facebook Other Sign in options doWithAds(function(){if ('injected_slot' != 'injected_slot') {ad_utils.register_ad('injected_navstrip');}}); doWithAds(function(){if ('injected_slot' == 'injected_slot') {ad_utils.inject_ad.register('injected_navstrip');} else {ad_utils.gpt.render_ad('injected_navstrip');}}, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); if (typeof uet == 'function') { uet("ne"); } doWithAds(function(){if ('injected_slot' != 'injected_slot') {ad_utils.register_ad('injected_billboard');}}); doWithAds(function(){if ('injected_slot' == 'injected_slot') {ad_utils.inject_ad.register('injected_billboard');} else {ad_utils.gpt.render_ad('injected_billboard');}}, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); Bigfoot Junior (2017) The Son of Bigfoot
Yes Antoine, I used the v4.002.antp wrote:For me it works fine, except an accent problem if I set "UserCountry" to 'Spain'.
Do you have the version 4.002 of the script?
If so, can you send me the contents of the HTML page via e-mail? (in a zip file, either do a Save As and select to save the page without images, or copy/paste what is in the "view source" of your browser)
As IMDb tends to change the contents based on the country, maybe there is a small detail that cause a problem in the script.
I send eMail to U at site-contact@antp.be with HTML page and view source text.
Merry Christmas,
Juan
-
- Posts: 63
- Joined: 2009-03-11 14:36:10
- Location: Hungary
Hi,
I used the new v4.002 script, it worked so far, but it was wrong this morning:
picture import and a translated tittle doesn't work
thx
I used the new v4.002 script, it worked so far, but it was wrong this morning:
picture import and a translated tittle doesn't work
thx
antp wrote:I posted a version 4.002 that should fix:
- actors layout
- special characters
- MPAA/Certification
- original/translated title
There may still be problems though, as again I tested only with a few entries
I modified the "AllActors" option so 0 = stars from the top of the page, as the old 0 option had no use anymore (we import all info from the "/reference" movie page and not from the main movie page)
Options 1 and 2 still take respectively all actors and first 10 actors (number configurable via a constant in the script, in case you were previously using AllActors=0 for getting the first 15 actors).
Indeed the picture is now not found, I'll check that later.
I don't have the title problem myself but I'll try to check that with the HTML sent by Radagast.
By the way, can you also send me the code of the page of the AKA titles, i.e. http://www.imdb.com/title/tt1686784/releaseinfo#akas ? As the problem is maybe rather from there.
I don't have the title problem myself but I'll try to check that with the HTML sent by Radagast.
By the way, can you also send me the code of the page of the AKA titles, i.e. http://www.imdb.com/title/tt1686784/releaseinfo#akas ? As the problem is maybe rather from there.
Sorry, I'm a newbie and don't really understand much about what you did/wrote. Is there any hope to get a new IMdB script that will download the first 15 actors ?I modified the "AllActors" option so 0 = stars from the top of the page, as the old 0 option had no use anymore (we import all info from the "/reference" movie page and not from the main movie page)
Options 1 and 2 still take respectively all actors and first 10 actors (number configurable via a constant in the script, in case you were previously using AllActors=0 for getting the first 15 actors).
In the script window, click the "Editor" tab, somewhere in the first page you'll see a line MaxActors = 10; where you can change the number to 15 (keep the semicolon at the end), then click the "Save" icon.
In the next version I'll try to use script parameters to make that easier to change (and also to allow to remember the value, as here it will be lost at the next script update).
In the next version I'll try to use script parameters to make that easier to change (and also to allow to remember the value, as here it will be lost at the next script update).
for 10 comments selection (commenttype = 1) just replace the section by this and add missing variables used in script:
if (GetOption('CommentType') = 1) then
begin
begin
Value2 := '';
Value3 := '';
p:= 0;
FullValue := ConvertToASCII(GetPage(MovieURL+'/reviews'));
FullValue := TextAfter(FullValue, '<div class="lister-item mode-detail imdb-user-review');
while FullValue <> '' do
begin
Value := TextBetween(FullValue, '<div class="review-container">','<div class="actions text-muted">');
p:= p + 1;
Value3 := inttostr(p) + '. ' + TextBetween(Value, '<div class="title">','</div>');
Value2 := Value2 + Value3;
Value2 := Value2 + ' (by ' + TextAfter (TextBetween(Value, '<span class="display-name-link">','</a>'),'>');
Value2 := Value2 + #32 + 'on ' + TextBetween(Value, '<span class="review-date">', '</span>') + ')' ;
Value := RemainingText;
Value := TextBetween(Value, '<div class="text">','</div>');
Value := StringReplace(Value, #13#10, ' ');
Value := StringReplace(Value, '<br/><br/>', #13#10);
Value := StringReplace(Value, '<br/>', #13#10);
HtmlRemoveTags(Value);
Value2 := Value2 + #13#10 + #13#10 + FullTrim(Value);
FullValue := TextAfter(FullValue, '<div class="lister-item mode-detail imdb-user-review');
if FullValue <> '' then Value2 := Value2 + #13#10 + #13#10;
end;
HTMLRemoveTags(Value2);
HTMLDecode(Value2);
SetField(fieldComments, Value2);
end;
end
if (GetOption('CommentType') = 1) then
begin
begin
Value2 := '';
Value3 := '';
p:= 0;
FullValue := ConvertToASCII(GetPage(MovieURL+'/reviews'));
FullValue := TextAfter(FullValue, '<div class="lister-item mode-detail imdb-user-review');
while FullValue <> '' do
begin
Value := TextBetween(FullValue, '<div class="review-container">','<div class="actions text-muted">');
p:= p + 1;
Value3 := inttostr(p) + '. ' + TextBetween(Value, '<div class="title">','</div>');
Value2 := Value2 + Value3;
Value2 := Value2 + ' (by ' + TextAfter (TextBetween(Value, '<span class="display-name-link">','</a>'),'>');
Value2 := Value2 + #32 + 'on ' + TextBetween(Value, '<span class="review-date">', '</span>') + ')' ;
Value := RemainingText;
Value := TextBetween(Value, '<div class="text">','</div>');
Value := StringReplace(Value, #13#10, ' ');
Value := StringReplace(Value, '<br/><br/>', #13#10);
Value := StringReplace(Value, '<br/>', #13#10);
HtmlRemoveTags(Value);
Value2 := Value2 + #13#10 + #13#10 + FullTrim(Value);
FullValue := TextAfter(FullValue, '<div class="lister-item mode-detail imdb-user-review');
if FullValue <> '' then Value2 := Value2 + #13#10 + #13#10;
end;
HTMLRemoveTags(Value2);
HTMLDecode(Value2);
SetField(fieldComments, Value2);
end;
end
Just sent the code.antp wrote:By the way, can you also send me the code of the page of the AKA titles, i.e. http://www.imdb.com/title/tt1686784/releaseinfo#akas ? As the problem is maybe rather from there.