News:

SMF - Just Installed!

Main Menu

BoxOfficeMojo_ [HTTPS] script

Started by Ivek23, 10 01 May, 2021, 10:29:32 AM

Previous topic - Next topic

Ivek23

BoxOfficeMojo_ [HTTPS] script

Here is the new BoxOfficeMojo_ [HTTPS] script.


Quote
BoxOfficeMojo.com script


BoxOfficeMojo data:                                           custom field:
--------------------------                                  -------------------

Production Budget                                           Production Budget:   
Worldwide                                              Worldwide:

In addition to the custom fields mentioned above, it also has the following custom fields:


BoxOfficeMojo data:                                           custom field:
--------------------------                                  -------------------

Description                                                      Description   
Domestic                                                              Domestic:
International                                                            International:
Domestic Distributor                                                   Distributor:   or   Distributors:
Genres                                                                   Genresm    or  Genremb)
Earliest Release Date                                           Release Date2
MPAA Rating                                                            MPAA Rating:
BOMUpdated                                                      BOMUpdated
BoxOfficeMojo.com                                                   BoxOfficeMojo.com


These additional custom fields are added by each individual to PVD according to their wishes, depending on what they would like to see in their movie database.

The following normal fields are also added:
Poster, Title, Year, Description, Genres, Budget, Release Date and MPAA


Search results also contain movie posters. To display movie posters, you need to use the Proxomitron program[/color] and proxy settings in PVD.
QuoteYou will also need a new default.cfg file, which is added below. Download the file and copy the Proxomitron program folder, to replace the old "default.cfg" with this new "default.cfg" .

It will also act PVD, you must also PVD settings \ Internet connection, find the "Proxy" and confirm. In the "Server" field enter "localhost" Port settings to 80 . Only with this configuration will function properly PVD. PVD is used only proxy port 80.
The same goes for transferring posters to PVD movie databases. Posters use secure Amazon https url links, which PVD does not yet recognize and posters without Proxomitron cannot be viewed or downloaded to the database.

Bing search results don't work. If search results don't work, you can manually add  http://www.boxofficemojo.com/title/ + IMDB MovieID.

The BoxOfficeMojo_ [HTTPS] script is attached.

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


Ivek23

Search results

When you search for the title of a particular movie, you will be presented with a pop-up box with several search results hits. BoxOfficeMojo_ [HTTPS] script has the ability to transfer data to multiple movie titles at once. Then there is a problem with url addresses. Passes the correct url for one address and no more for the others. So I added the following option to download multiple url addresses at once.
QuoteAddSearchResult(' ~ Another Additional Correct Download URL for Title ~ ','','','','');
         AddSearchResult(Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL+'https://', 'http://',True,False,False),'');
         AddSearchResult('  '+#8729+'  Just to check the website: '+#8729+'  '+Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL,'',True,False,False),'');       
         AddSearchResult('  '+#8729#8729+' Just to view a partial web URL:'+#8729+' '+StringReplace(MovieURL,CHEAT_PREFIX_URL+BASE_URL_TRUE,'',True,False,False),'',Year,'','');
         AddSearchResult('','','','','');
Mark the title of a particular movie nominally, and mark the following movie titles that you want to have in the database under ~ Another Additional Correct Download URL for Title ~ record (see picture). This will properly transfer all the movie URLs to you.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Ivek23

I added the following features to the script.

QuoteGET_POSTER  = False;  //Set to False or True
   GET_SEARCH_POSTER  = False;  //Set to False or True
.
.
        if GET_SEARCH_POSTER then      
         //AddSearchResult(Title,'',Year,MovieURL,PreviewURL);                 //Preview size fails in some PVdB users
         AddSearchResult(Title,'',Year,MovieURL,PreviewURL)
        else
         AddSearchResult(Title,'',Year,MovieURL,'');   
         AddSearchResult(' ~ Another Additional Correct Download URL for Title ~ ','','','','');
         AddSearchResult(Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL+'https://', 'http://',True,False,False),'');
         AddSearchResult('  '+#8729+'  Just to check the website: '+#8729+'  '+Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL,'',True,False,False),'');       
         AddSearchResult('  '+#8729#8729+' Just to view a partial web URL:'+#8729+' '+StringReplace(MovieURL,CHEAT_PREFIX_URL+BASE_URL_TRUE,'',True,False,False),'',Year,'','');
         AddSearchResult('','','','','');         
         LogMessage('      Get results AddSearchResult: #'+IntToStr(index)+' | '+Title+' | '+MovieURL+' | '+PreviewURL+' ||');
.
.
     //Get ~poster~
     If GET_POSTER then begin
      curPos:=Pos('<div class="a-fixed-left-grid-col a-col-left" style="width:107px;margin-left:-107px;float:left;"><img alt="" src="',HTML);      //WEB_SPECIFIC
      if (0<curPos) then begin
        ItemValue4:=TextBetWeen(HTML,'" height="139" width="92" data-a-hires="','"/></div><div class="a-fixed-left-grid-col a-col-right" style="padding-left:0%;float:left;">',false,curPos);            //Strings which opens/closes the data. WEB_SPECIFIC
        AddImageURL(itPoster,ItemValue4);
        LogMessage('      Get result poster: '+ItemValue4);
      end;
     End;

It's possible that will script also worked without the Proxomitron program.

A new BoxOfficeMojo_ [HTTPS] script version is added to the first post.


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


Ivek23

Quote from: Ivek23 on 10 01 May, 2021, 10:31:36 AM
Search results

When you search for the title of a particular movie, you will be presented with a pop-up box with several search results hits. BoxOfficeMojo_ [HTTPS] script has the ability to transfer data to multiple movie titles at once. Then there is a problem with url addresses. Passes the correct url for one address and no more for the others. So I added the following option to download multiple url addresses at once.
QuoteAddSearchResult(' ~ Another Additional Correct Download URL for Title ~ ','','','','');
         AddSearchResult(Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL+'https://', 'http://',True,False,False),'');
         AddSearchResult('  '+#8729+'  Just to check the website: '+#8729+'  '+Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL,'',True,False,False),'');       
         AddSearchResult('  '+#8729#8729+' Just to view a partial web URL:'+#8729+' '+StringReplace(MovieURL,CHEAT_PREFIX_URL+BASE_URL_TRUE,'',True,False,False),'',Year,'','');
         AddSearchResult('','','','','');
Mark the title of a particular movie nominally, and mark the following movie titles that you want to have in the database under ~ Another Additional Correct Download URL for Title ~ record (see picture). This will properly transfer all the movie URLs to you.

If movie titles already exist in the database, the movie titles will be marked in the same way as for only one movie title, because the search for results will be repeated and only the first movie title in the list will be marked at that time.

Quote from: Ivek23 on 10 01 May, 2021, 10:33:23 AM
I added the following features to the script.

QuoteGET_POSTER  = False;  //Set to False or True
   GET_SEARCH_POSTER  = False;  //Set to False or True

You can choose for yourself which option you want to use. Just open the script, find these options, modify and save these changes. p otem the script will work as you wish.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD