Author Topic: AllMovie.com_new movie script  (Read 88078 times)

0 Members and 1 Guest are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #60 on: May 03, 2013, 09:29:54 am »
http://www.allmovie.com/movie/the-housemaid-v317173
http://www.allmovie.com/movie/el-camino-v434425

These two URLs script (AllMovie or AllRovi script) in a single search finds is verified.

http://www.allmovie.com/movie/the-expendables-v474338
http://www.allmovie.com/movie/the-outlaw-v569124

These URLs script (AllMovie or AllRovi script) in a single search not at all found, it is checked. It is not in the search results on the web site.

http://www.allmovie.com/movie/loose-change-9-11-an-american-coup-v492684

This url script in a single search not at all found, it is checked. It is AllRovi script finds.

http://www.allmovie.com/movie/the-life-and-death-of-a-porno-gang-v523933

The reason, why script
  • It is possible that the film you are looking to contain inappropriate content (adult movies) and filter for the children of this film does not show in the list of search results (filter is already in primary settings). As far as I know, AllRovi websites use this filter and AllMovie new website also use this filter.
absolutely not found.

http://www.allmovie.com/movie/shanghai-v425881/

This url script in a single search not at all found, verified, because on the next page in the search results.

With a Google search, all URLs to find.

Is it possible to use this information to improve the script?

In this regard, it is as follows:
probably that or not, I do not know, I'm not a programmer, I do not have the right of replies to it.

I suggest a small solution for certain movies. I arranged AllRovi script that will find certain movies. In the URL field will instead AllRovi url added AllMovie url address. He added the title and the year of the film, but unfortunately it does not rating reviews

AllRovi_simple script is attached.

[attachment deleted by admin]
« Last Edit: May 03, 2013, 09:54:26 am by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 444
    • View Profile
Re: AllMovie.com_new movie script
« Reply #61 on: May 03, 2013, 01:48:52 pm »
http://www.allmovie.com/movie/the-housemaid-v317173
http://www.allmovie.com/movie/el-camino-v434425

These two URLs script (AllMovie or AllRovi script) in a single search finds is verified.

Unfortunately it's not

For the first movie, original title is "Hanyo", and as I understood the script searches by <origtitle>, not by <title> - which is proved in picture 1.jpg attached by search within PVD, also the same search AllMovie.com by origtitle . Why then,script searches by original title, but not by <title>, cause obviously allmovie.com has no accurate database of original titles in "ALTERNATE TITLE" FIELD? Wouldn't be more reasonable then to search by title?

It's the same with the second movie. It's original title isn't "El camino", but "Camino", that's why it couldn't have been found.

But, look at the Google with "Hanyo" only-term search. Perfect match? BUT HOW THE HELL GOOGLE FOUND "HANYO" ON ALLMOVIE, WHEN "HANYO" ISN'T STATED ANYWHERE ON ALLMOVIE.COM FOR THE MOVIE FROM 1960????

Is it possible to incorporate google search results in allmovie script, not to search allmovie directly, but via google, so it extracts all allmovie's url from the first ten google results that have "vxxxxxx", then deletes everything after "-vxxxxx" in such urls, and returm us search results? Such a script for all movie would hit all original titles and adult genre in first couple of matches (depending on how often original title is used in cinematography).

Thanks for the rovi simple script anyway, but still no luck with these titles!





[attachment deleted by admin]
« Last Edit: May 03, 2013, 02:44:21 pm by afrocuban »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #62 on: May 03, 2013, 07:19:47 pm »
http://www.allmovie.com/movie/the-housemaid-v317173
http://www.allmovie.com/movie/el-camino-v434425

These two URLs script (AllMovie or AllRovi script) in a single search finds is verified.

Unfortunately it's not

For the first movie, original title is "Hanyo", and as I understood the script searches by <origtitle>, not by <title> - which is proved in picture 1.jpg attached by search within PVD, also the same search AllMovie.com by origtitle . Why then,script searches by original title, but not by <title>, cause obviously allmovie.com has no accurate database of original titles in "ALTERNATE TITLE" FIELD? Wouldn't be more reasonable then to search by title?

If you access the Internet over the url to the film page and with this page, copy the title of the movie in PVD, you will find the script (movie).

Is it possible to incorporate google search results in allmovie script, not to search allmovie directly, but via google, so it extracts all allmovie's url from the first ten google results that have "vxxxxxx", then deletes everything after "-vxxxxx" in such urls, and returm us search results? Such a script for all movie would hit all original titles and adult genre in first couple of matches (depending on how often original title is used in cinematography).

Sorry, too demanding application for my knowledge in computer science (I'm no programmer, I'm just a computer amateur, self-taught without a single hour of training in computer science). For my part the answer is no, maybe you can help someone else in this matter.

In the search results the you can in help also Bing_SearchMulti_All script that gets to the right connections or access to the web site and also to url addresses. Bing_SearchMulti_All script displays URLs in the search results, but does not transfer anything.

Bing_SearchMulti_All script is attached.

[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #63 on: May 04, 2013, 06:43:52 am »
I fixed search in Bing_SearchMulti_All script. Script now find search results for both AllMovie as well as for AllRovi.

Bing_SearchMulti_All script is attached.

[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #64 on: May 04, 2013, 03:20:39 pm »
I tried to manipulate the AllMovie_simple script with Bing search results, it has been successful and script it works. I also tried the Google search results, so far unsuccessfully. This is now the basis for a script that someone might be able to edit the script with Google search results.

AllMovie.com_Bing_Search script is attached.

[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 444
    • View Profile
Re: AllMovie.com_new movie script
« Reply #65 on: May 04, 2013, 04:02:11 pm »
:)

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #66 on: June 01, 2014, 08:25:24 am »
AllMovie.com_new script
v 0.1.1.4.


For  ~Mood links~ :

I made several small corrections in the Mood links code in ParseMovie procedure for correctly download url links for Moods, if the links are available at wayback.archive.org .
« Last Edit: June 01, 2014, 04:44:53 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #67 on: June 01, 2014, 08:26:31 am »
AllMovie.com_new script
v 0.1.1.5.


I also added an Alternate title in ParseMovie procedure for the transfer of alternate titles of movies, if they are present at AllMovie movie web sites.

Code: [Select]
//~Alternate title~

TmpStr := HTMLValues(HTML,
'<dt>alternate title</dt>', '</dd>', //ItemEnd was '<dt>'
'<li>', '</li>',
', ', endPos);
AddCustomFieldValueByName('Alternate title', TmpStr);

Notice:
The new version of the script is added to the Download page.


Appendix:

Now it is added to the correct script to download page.
« Last Edit: June 01, 2014, 04:25:23 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline UtNut

  • User
  • ***
  • Posts: 74
    • View Profile
Re: AllMovie.com_new movie script
« Reply #68 on: June 01, 2014, 04:05:30 pm »

Many thanks as always Ivek
1984 was NOT supposed to be an instruction manual

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #69 on: June 01, 2014, 04:19:26 pm »

Many thanks as always Ivek

Thanks.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #70 on: September 21, 2014, 05:54:38 pm »
I fixed search in Bing_SearchMulti_All script. Script now find search results for both AllMovie as well as for AllRovi.

I fixed search results for Bing_SearchMulti_AllMovie script - version 0.0.0.3
Script find now search result for AllMovie. Script displays URLs in the search results, but does not transfer anything.


Bing_SearchMulti_AllMovie script is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #71 on: September 21, 2014, 06:07:50 pm »
I tried to manipulate the AllMovie_simple script with Bing search results, it has been successful and script it works.

AllMovie.com_simple_Bing_Search script - version 0.1.1.0
 
AllMovie.com_simple_Bing_Search script transfer the info on the movie title, year, rating and poster.

AllMovie.com_simple_Bing_Search script is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #72 on: March 02, 2015, 03:09:47 pm »
AllMovie.com_new script
v 0.1.2.0.


Have been made some changes in search results, namely, that it is now to find a movie title, which is not listed on the first page of search results, but on the other sides.

Changes in the AllMovie.com_new script:
Code: [Select]
//Script data
SCRIPT_VERSION = '0.1.2.0';
SCRIPT_NAME = 'AllMovie.com_new';
SCRIPT_DESC = '[EN] Get Movie Information from AllMovie.com_new page';
SCRIPT_LANG = $09; //English
SCRIPT_TYPE = stMovies;

BASE_URL = 'http://www.allmovie.com';
      RATING_NAME = 'AllMovie';
//      SEARCH_STR = 'http://www.allmovie.com/search/movies/%s';
CODE_PAGE = 65001; //Use 0 for Autodetect

//User Options
GET_ACTORS = True; //Set to False to ensure ~ctActors~ not added even if 'Overwrite fields' setting allows
GET_DURATION = True; //Set to False to ensure ~mfDuration~ not set even if 'Overwrite fields' setting allows
//Note the program will overwrite this with the actual media duration in any case
GET_POSTER = True; //Set to False if posters not wanted (or to handle bad image URL causing HTTP 404 error)
GET_RATING = True; //Set to False to ensure ~mfRating~ not set even if 'Overwrite setting' fields setting allows
GET_THEMES = True; //Set to False to ensure ~mfCategory~ not added even if 'Overwrite fields' setting allows


//Global variables
var
ELI, I : Integer;
MovieName, PageSite : String;
Mode : Byte;
ExtraLinks : array [smCast..smPoster] of String;
TabMovieName, TabNumber, TabPageSite, TabPage : TwideArray;

Code: [Select]
//function GetDownloadURL : AnsiString;
//begin
// if (Mode = smSearch) then
// Result := SEARCH_STR
// else
// Result := ExtraLinks[Mode];
//end;

function GetDownloadURL : AnsiString;
Var
URLSearch,URLSearch1,URLSearch2: String;
begin
//Get Name of movie to search :               
    MovieName := GetFieldValue(2);
    Explodestring(MovieName,TabMovieName,#32);
    MovieName := #43;
    For I:=low(TabMovieName) to High(TabMovieName) do
    Begin
    MovieName := MovieName  +  TabMovieName[I] + #43;
    end;

URLSearch1 := 'http://www.allmovie.com/search/movies/'+MovieName+'/all/10';
    LogMessage('URL page recherche : '+ URLSearch1);
URLSearch := 'http://www.allmovie.com/search/movies/'+MovieName;
    LogMessage('URL page recherche : '+ URLSearch);

if (Mode = smSearch) then
Result := URLSearch1
else
Result := ExtraLinks[Mode];
if (Mode = smSearch) then
Result := URLSearch
else
Result := ExtraLinks[Mode];
end;

Code: [Select]
procedure ParseSearchResults(HTML : String);
var
curPos, endPos : Integer;
Title, Year, URL, director : String;
begin
//List of other site number where search page :
TabNumber := ['10', '20', '30', '40', '50', '60', '70', '80', '90', '100'];
//List of other page site number where search page :
TabPage := ['2', '3', '4', '5', '6', '7', '8', '9', '10','11'];
 
curPos := Pos('<div id="search-results" class="all">', HTML);
// curPos := Pos('div class="results-section movies">', HTML);
if curPos < 1 then
Exit;

LogMessage('Parsing search results...');

curPos := PosFrom('<a href="http://www.allmovie.com/movie/', HTML, curPos);
while curPos > 0 do begin
endPos := PosFrom('" class="tool-tip" data-objectid="', HTML, curPos);
URL := Copy(HTML, curPos + 9, endPos - curPos - 9);

curPos := PosFrom('">', HTML, curPos)+2;
endPos := PosFrom('</a>', HTML, curPos);
Title := Copy(HTML, curPos, endPos - curPos);

curPos := PosFrom('</a>', HTML, curPos)+24;
endPos := PosFrom('</dt>', HTML, curPos);
Year := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);

curPos := PosFrom('">', HTML, curPos)+2;
endPos := PosFrom('</a></dd>', HTML, curPos);
director := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);

AddSearchResult(Title+' '+Year, '', '', URL, '');
curPos := PosFrom('<a href="http://www.allmovie.com/movie/', HTML, curPos);
end;

   
//Get Name of movie to search :               
    MovieName := GetFieldValue(2);
    Explodestring(MovieName,TabMovieName,#32);
    MovieName := '';
    For I:=low(TabMovieName) to High(TabMovieName) do
    Begin
    MovieName := MovieName   + #43 +  TabMovieName[I];
    end;
//Add Links to Page with other sites in TabNumber:
    For I := Low(TabNumber) to High(TabNumber) do
    Begin
URL := 'http://www.allmovie.com/search/movies/'+MovieName+'/all/' + TabNumber[I];
//AddSearchResult('Search in '+MovieName+' on AllMovie.com ',TabNumber[I],'',URL,'');
  end;
    Begin
URL := 'http://www.allmovie.com/search/movies/'+MovieName+'/all/';
AddSearchResult('Search in '+MovieName+' on AllMovie.com ','Page 1','',URL,'');
  end;
//List of other page site number where search page :
//    PageSite := GetFieldValue(0);
//    Explodestring(PageSite,TabPageSite,#32);
//    PageSite := '';
    For I := Low(TabPage) to High(TabPage) do
    Begin
//PageSite := PageSite+TabPage[I];
URL := 'http://www.allmovie.com/search/movies/'+MovieName+'/all/' + TabNumber[I];
  AddSearchResult('Search in '+MovieName+' on AllMovie.com ','Page '+TabPage[I],'',URL,'');
  //AddSearchResult('Search in '+MovieName+' on AllMovie.com '+TabPage[I],TabNumber[I],'',URL,'');
    //AddSearchResult('Search in '+MovieName+' on AllMovie.com ',TabPage[I],'',URL,'');
   end;
//    Begin
// URL := 'http://www.allmovie.com/search/movies/'+MovieName+'/all/';
// AddSearchResult('Search in '+MovieName+' on AllMovie.com ','1','',URL,'');
//  end;

end;

Notice:
The new version of the script is added to the Download page.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline UtNut

  • User
  • ***
  • Posts: 74
    • View Profile
Re: AllMovie.com_new movie script
« Reply #73 on: March 03, 2015, 06:03:13 pm »

I love this script, I can now see 11 page numbers being displayed...
Many thanks.
1984 was NOT supposed to be an instruction manual

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #74 on: March 03, 2015, 07:51:24 pm »

I love this script, I can now see 11 page numbers being displayed...
Many thanks.

Thank you, of course, I'm also glad your positive feedback.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline UtNut

  • User
  • ***
  • Posts: 74
    • View Profile
Re: AllMovie.com_new movie script
« Reply #75 on: April 17, 2015, 11:15:10 am »
Looks like Allmovie had a major change of their website, hence the script doesn't work any more :-(.
Any chance you could make the script work again?
Mtia.
1984 was NOT supposed to be an instruction manual

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #76 on: April 17, 2015, 03:27:38 pm »
Looks like Allmovie had a major change of their website, hence the script doesn't work any more :-(.
Any chance you could make the script work again?
Mtia.

Yes, it is true, a lot of changes, I do not know, when we will be able to edit the AllMovie script. Currently, the best of my time and the current back problems allow it regulates other script. I hope that by October, AllMovie script only organized and will be operated.

Thank you for your patience and waiting for the corrected AllMovie script.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline UtNut

  • User
  • ***
  • Posts: 74
    • View Profile
Re: AllMovie.com_new movie script
« Reply #77 on: May 03, 2015, 05:43:12 pm »

Does that mean you have problems with your back? If so, I'm sorry to hear that.

My late reply shows that I'm full of patience and it's great to learn you will get the script working again in the near future, no rush on my account please.

In fact, I just finished to enter all my movies in PVD when AllMovie decided to change their website....Lucky me.

Thanks for all the support.
1984 was NOT supposed to be an instruction manual

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #78 on: May 03, 2015, 06:18:53 pm »
Does that mean you have problems with your back? If so, I'm sorry to hear that.

Thank you for this:
If so, I'm sorry to hear that.

Now it has been past and is ok, but sometimes this is happening to me for to the repeat these problems (once smaller, second major, now was that the second).

My late reply shows that I'm full of patience and it's great to learn you will get the script working again in the near future, no rush on my account please.

I will try to operate again unless the undue difficulty, we will see how to proceed.

In fact, I just finished to enter all my movies in PVD when AllMovie decided to change their website....Lucky me.

It was really lucky ...

Thanks for all the support.

Welcome.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2658
    • View Profile
Re: AllMovie.com_new movie script
« Reply #79 on: May 16, 2015, 08:23:24 pm »
AllMovie.com_new (2) script
v 0.1.2.1.


Yes, it is true, a lot of changes, I do not know, when we will be able to edit the AllMovie script. Currently, the best of my time and the current back problems allow it regulates other script. I hope that by October, AllMovie script only organized and will be operated.

Thank you for your patience and waiting for the corrected AllMovie script.

There is to test AllMovie.com (2) script to you can try out how it works now.
Feedback is very welcome, especially about errors in the transmission of information (the movie title and url link, please).

Script is the attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


 

anything