Author Topic: PVD Selenium MOD v4 IMDb Movie Script Confusion  (Read 3979 times)

0 Members and 2 Guests are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #20 on: March 31, 2025, 11:35:38 am »

Function ParsePage(HTML: String;URL:AnsiString):Cardinal;   //BlockOpen

Minor code correction.

Quote
   
       //Get ~url~
        if (0=Pos(BASE_URL_PRE, StoredURL)) then begin   //Write the url if doesn't exist
            AddFieldValueXML('url', StringReplace(DownloadURL, BASE_URL_PRE_TRUE, BASE_URL_PRE, True, False, False));
            LogMessage('Function ParsePage -      Get result ~url~: ' + StringReplace(DownloadURL, BASE_URL_PRE_TRUE, BASE_URL_PRE, True, False, False) + ' | |');
        end;
      
        //Get ~IMDb Movie Url~ (CF~IMDb.com~) and (CF~WaybackArchive IMDb URLs~)
        Movie_URL := StringReplace(DownloadURL, BASE_URL_PRE_TRUE, BASE_URL_PRE, True, False, False);
      LogMessage('Function ParsePage -      Get result Movie_url: ' + Movie_URL + ' | |');
      
      AddCustomFieldValueByName('IMDb.com', '<link url="' + Movie_URL + '">IMDb.com</link>');
      
      AddCustomFieldValueByName('WaybackArchive IMDb URLs', '<link url="https://web.archive.org/web/*/' + Movie_URL + '*">*IMDb.com*</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'business">Busines</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'combined">Combined</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'fullcredits">Full Cast&Crew</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'awards">Awards</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'releaseinfo">ReleaseDates</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'technical">TechSpecs</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'parentalguide">ParentsGuide</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'keywords">PlotKeywords</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'plotsummary">PlotSummary</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'taglines">Taglines</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'movieconnections">Connections</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'soundtrack">Soundtracks</link>  <link url="https://web.archive.org/web/*/' + Movie_URL + 'externalsites">MiscSites</link>');
            
      Fullinfo1 := '';
      Fullinfo1 := Fullinfo1 + '<link url="http://www.boxofficemojo.com/title/' + MovieID + '">BoxOfficeMojo</link>  ';
      Fullinfo1 := Fullinfo1 + '<link url="http://en.wikipedia.org/w/index.php?search=' + GetFieldValue(2) + '">Wikipedia</link>  ';
      Fullinfo1 := Fullinfo1 + '<link url="https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dmovies-tv&field-keywords=' + GetFieldValue(2) + '">AmazonSearch</link>  ';
      Fullinfo1 := Fullinfo1 + '<link url="https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dmovies-tv&field-keywords=' + GetFieldValue(2) + '%20' + GetFieldValue(5) + '">AmazonSearch1</link>  ';
      Fullinfo1 := Fullinfo1 + '<link url="https://www.allmovie.com/search/movies/' + GetFieldValue(2) + '">AllMovieSearch</link>  ';
      Fullinfo1 := Fullinfo1 + '<link url="https://www.themoviedb.org/search?query=' + GetFieldValue(2) + '">TMDBSearch</link>  ';
      Fullinfo1 := Fullinfo1 + '<link url="https://www.rottentomatoes.com/search/?search=' + GetFieldValue(2) + '">RottenTomatoesSearch</link>  ';
      Fullinfo1 := Fullinfo1 + '<link url="https://www.thetvdb.com/search?query=' + GetFieldValue(2) + '">TVDB Search</link>  ';
      If Fullinfo1 <> '' then Fullinfo1 := Fullinfo1;
      If Fullinfo1 <> '' then AddCustomFieldValueByName('IMDbMovieLinksInfo', Fullinfo1);
            
      AddCustomFieldValueByName('IMDbSearchUrl', '<link url="http://www.imdb.com/find/?s=tt&q=' + StringReplace(GetFieldValueXML('title'), ' ', ' + ', True, True, False) + '">**Search IMDb**</link>  <link url="https://www.imdb.com/search/title?title=' + StringReplace(GetFieldValueXML('title'), ' ', ' + ', True, True, False) + '">Search IMDb</link>  ');
      
      AddCustomFieldValueByName('IMDbMoviesUrl', '<link url="' + Movie_URL + '">IMDb MovieUrl</link>  <link url="https://www.boxofficemojo.com/title/' + MovieID + '/">Box Office Mojo</link>  <link url="http://www.omdbapi.com/">OMDb API info</link>  <link url="http://www.omdbapi.com/apikey.aspx">OMDb API Key</link>');
      
      //AddCustomFieldValueByName('OMDbAPIUrl', '<link url="' + Movie_URL + '">IMDb MovieUrl</link>  <link url="http://www.omdbapi.com/?i=' + MovieID + '&apikey=[yourkey]&plot=short&tomatoes=true">OMDb API info for IMDb</link>  <link url="http://www.omdbapi.com/?i=' + MovieID + '&apikey=[yourkey]&plot=full&tomatoes=true">OMDb API full info for IMDb</link>  <link url="http://www.omdbapi.com/?i=' + MovieID + '&apikey=[yourkey]&plot=full&r=xml&tomatoes=true">OMDb API full xml info for IMDb</link>  <link url="http://www.omdbapi.com/?s=' + GetFieldValueXML('title') + '&apikey=[yourkey]&plot=short&tomatoes=true">OMDb API Search for IMDb</link>');
      //LogMessage('Function ParsePage -      Get result OMDb API info_URL: ' + #13 + '<link url="http://www.omdbapi.com/">OMDb API info</link>  <link url="http://www.omdbapi.com/apikey.aspx">OMDb API Key</link>' + ' | |');
            
      //(*
        Fullinfo := '';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + '">MainPage</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'reference">Reference</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'fullcredits">Full Cast&Crew</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'awards">Awards</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'releaseinfo">ReleaseDates</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'technical">TechSpecs</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'parentalguide">ParentsGuide</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'keywords">PlotKeywords</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'plotsummary">PlotSummary</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'locations">FilmLocations</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'taglines">Taglines</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'companycredits">CompanyCredits</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'movieconnections">Connections</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'soundtrack">Soundtracks</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'externalsites">MiscSites</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'externalsites#photos">MiscPhoto</link>  ';
        Fullinfo := Fullinfo + '<link url="' + Movie_URL + 'mediaindex">PhotoGallery</link>  ';
      Fullinfo := Fullinfo + '<link url="http://www.imdb.com/chart/top">IMDb Top 250</link>  ';
      Fullinfo := Fullinfo + '<link url="http://www.imdb.com/chart/bottom">Lowest Rated</link>  ';
      Fullinfo := Fullinfo + '<link url="http://www.imdb.com/chart/toptv">Top 250 TV</link>  ';
      Fullinfo := Fullinfo + '<link url="https://www.imdb.com/search/title?title=' + StringReplace(GetFieldValueXML('title') + '&title_type=feature&view=simple&count=250', ' ', ' + ', True, True, False) + '">Search IMDb</link>  ';
      Fullinfo := Fullinfo + '<link url="http://www.imdb.com/find?s=tt&q=' + StringReplace(GetFieldValueXML('title'), ' ', ' + ', True, True, False) + '">**Search IMDb**</link>  ';
      If Fullinfo <> '' then IMDB_URL := Fullinfo;
      If IMDB_URL <> '' then AddCustomFieldValueByName('CompE', IMDB_URL);
        If IMDB_URL <> '' then AddCustomFieldValueByName('IMDb_Movies_ Urls', IMDB_URL);
        //LogMessage('Function ParsePage -      Get result Fullinfo-IMDB_URL (CF~CompE~ ): ' + #13 + IMDB_URL + ' | |')
      //*)
Quote
    //Date ~Updated~ (choose simple or verbose version)
        Date := DateToStr(CurrentDateTime);
        //AddFieldValueXML('viewdate', Date); //Only date, don't admit time-. Set Seen value at the same time.
        //AddFieldValueXML('moddate', Date + ' ' + TimeToStr(CurrentDateTime)); //Block the dB saving
        ExplodeString(Date, DateParts, '-');
        Date := DateParts[2] + '.' + DateParts[1] + '.' + DateParts[0];
        Date := CustomStringReplace(Date, ['01.', '02.', '03.', '04.', '05.', '06.', '07.', '08.', '09.'], ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.']);
        //AddCustomFieldValueByName('Updated', Date); // Simple
        //AddCustomFieldValueByName('Updated0', Date + ' at ' + TimeToStr(CurrentDateTime)); // Verbose
        AddCustomFieldValueByName('IUpdated', Date + ' at ' + TimeToStr(CurrentDateTime) + ' • ' + SCRIPT_FILE_NAME + ' ' + SCRIPT_VERSION);  // Annoying
        LogMessage('Function ParsePage -    Provider data info retreived Ok in ' + DateToStr(CurrentDateTime) + ' ' + TimeToStr(CurrentDateTime) + '| (~Updated~)');
        Mode := smFinished;
        LogMessage('Function ParsePage smNormal END====================== |');
        Exit;
    End;
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: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #21 on: April 09, 2025, 12:54:42 pm »
Here is an updated, modified and adapted IMDB_Movies_[EN][Selenium]-v4.psf , where only one custom field is used in certain parts of the code, rather than multiple duplicated custom fields, which then do not transfer the correct information or, possibly, do not transfer any information at all. However, some parts of the code or redundant parts of the code log files are blocked, because they are not used at all and only unnecessarily increase the size of the script. However, parts of the code are unblocked and should be, because they only slow down the script and a pop-up window appears with the Too many faulty attempts to internet connection notification

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


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #22 on: April 19, 2025, 05:07:33 pm »
Here is an updated, modified and adapted IMDB_Movies_[EN][Selenium]-v4.psf , where only one custom field is used in certain parts of the code, rather than multiple duplicated custom fields, which then do not transfer the correct information or, possibly, do not transfer any information at all. However, some parts of the code or redundant parts of the code log files are blocked, because they are not used at all and only unnecessarily increase the size of the script. However, parts of the code are unblocked and should be, because they only slow down the script and a pop-up window appears with the Too many faulty attempts to internet connection notification

Below is the attachment.


Is it possible to compile a complete package of scripts? So that an inexperienced user does not have to suffer during the compilation

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #23 on: April 19, 2025, 05:55:01 pm »
There is a PVD Selenium MOD v4 IMDb Movie, People and FilmAffinity topic on this link below, where the Scripts.7z package is a file with all the missing files in the package. Below is also the Scripts-2025-03-23.7z package with updates. Use only those files that you are missing. If you want, you can edit the SeleniumPVDbScriptsConfig-v4.ini file if you want to use more scripts.

https://www.videodb.info/forum_en/index.php/topic,4379.msg22821.html#msg22821
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #24 on: April 27, 2025, 10:46:25 am »
There is a PVD Selenium MOD v4 IMDb Movie, People and FilmAffinity topic on this link below, where the Scripts.7z package is a file with all the missing files in the package. Below is also the Scripts-2025-03-23.7z package with updates. Use only those files that you are missing. If you want, you can edit the SeleniumPVDbScriptsConfig-v4.ini file if you want to use more scripts.

https://www.videodb.info/forum_en/index.php/topic,4379.msg22821.html#msg22821

downloaded and installed. Now it gives me this message. I can edit it myself only if someone shows me what needs to be done. It is important and sufficient for me to download the basic information about the film. The one that was previously filled in by default. Therefore, the question is - what scripts and where to enter in the ".ini" file to get this information.
« Last Edit: April 27, 2025, 12:16:02 pm by Pacifist »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #25 on: April 27, 2025, 05:45:43 pm »
According to your picture, you need to confirm the "try again" button so that it will continue downloading files to the Program Folder/Scripts/Tmp folder. Or it will then finish downloading data for a specific movie.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #26 on: April 28, 2025, 07:03:05 am »
According to your picture, you need to confirm the "try again" button so that it will continue downloading files to the Program Folder/Scripts/Tmp folder. Or it will then finish downloading data for a specific movie.
and how many times do I need to press? I pressed it about 20 times. The result is this message each time. After that, will the download from the file in the folder be done into the program itself?

were you talking about these files (screen)?

But, as I understand it, temporary files are created there when the old classic IMDB script is running. And when IMDB-Selenium is running, there is nothing in the folder
« Last Edit: April 28, 2025, 12:17:01 pm by Pacifist »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #27 on: April 28, 2025, 07:06:07 pm »
What is written to the log file, maybe you will see an error there. There is definitely an error somewhere, considering that you have confirmed the "try again" button en masse.
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: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #28 on: April 28, 2025, 07:45:43 pm »
As far as I can see, you are using IMDB_Movie_[EN][Selenium]-v4, which is missing the updates that are causing these issues.

You should use my updated IMDB_Movies_[EN][Selenium]-v4 script and SeleniumPVDbScriptsConfig-v4.ini file. Maybe then you won't have these issues.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #29 on: April 29, 2025, 07:05:43 am »
As far as I can see, you are using IMDB_Movie_[EN][Selenium]-v4, which is missing the updates that are causing these issues.

You should use my updated IMDB_Movies_[EN][Selenium]-v4 script and SeleniumPVDbScriptsConfig-v4.ini file. Maybe then you won't have these issues.
where can I find them on the forum? Everything is so scattered now, unfortunately. I took this archive https://www.videodb.info/forum_en/index.php?action=dlattach;topic=4379.0;attach=7415

in the pvd folder there is only one log file - firebird.log. And there is no debug information. There is also log.txt, but it is empty

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #30 on: May 01, 2025, 09:20:19 am »
Scripts-2025-03-23.7z

https://www.videodb.info/forum_en/index.php?action=dlattach;topic=4379.0;attach=7427

This is described a few posts above

Here is an updated, modified and adapted IMDB_Movies_[EN][Selenium]-v4.psf , where only one custom field is used in certain parts of the code, rather than multiple duplicated custom fields, which then do not transfer the correct information or, possibly, do not transfer any information at all. However, some parts of the code or redundant parts of the code log files are blocked, because they are not used at all and only unnecessarily increase the size of the script. However, parts of the code are unblocked and should be, because they only slow down the script and a pop-up window appears with the Too many faulty attempts to internet connection notification
other archives are obtained.

Scripts_9-4-25_by_Ivek.7z

https://www.videodb.info/forum_en/index.php?action=dlattach;topic=4385.0;attach=7432

PVD must be running in debug mode, otherwise the log file is empty and add this below to the portable.bat file.
Quote
start viddb.exe -portable -debug
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #31 on: May 01, 2025, 12:28:16 pm »
Scripts-2025-03-23.7z

https://www.videodb.info/forum_en/index.php?action=dlattach;topic=4379.0;attach=7427

This is described a few posts above

Here is an updated, modified and adapted IMDB_Movies_[EN][Selenium]-v4.psf , where only one custom field is used in certain parts of the code, rather than multiple duplicated custom fields, which then do not transfer the correct information or, possibly, do not transfer any information at all. However, some parts of the code or redundant parts of the code log files are blocked, because they are not used at all and only unnecessarily increase the size of the script. However, parts of the code are unblocked and should be, because they only slow down the script and a pop-up window appears with the Too many faulty attempts to internet connection notification
other archives are obtained.

Scripts_9-4-25_by_Ivek.7z

https://www.videodb.info/forum_en/index.php?action=dlattach;topic=4385.0;attach=7432

PVD must be running in debug mode, otherwise the log file is empty and add this below to the portable.bat file.
Quote
start viddb.exe -portable -debug
installed. This message still appears and the information is not loaded.
log file attached.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #32 on: May 01, 2025, 04:44:28 pm »
I can see from the log file that there is no internet connection, which is why it is not transferring any information to you.

Below is the Scripts - What scripts do you need file, which has all the necessary folders and files that you must have in the Scripts folder of the PVD program, except for the chromedriver.exe file, which can be found at the links below in the quote section.

Quote
Chromedriver:
1. chromedriver   win32   https://storage.googleapis.com/chrome-for-testing-public/134.0.6998.88/win32/chromedriver-win32.zip
2. chromedriver   win64   https://storage.googleapis.com/chrome-for-testing-public/134.0.6998.88/win64/chromedriver-win64.zip

Unzip the Scripts - What scripts do you need file and then check if you also have all the files in your folder at D:\Game\pvd\Scripts\ plus the chromedriver.exe file. If you are missing something, first make a copy of the original Scripts folder, then add the missing files to the original Scripts folder or copy the entire Scripts folder from the Scripts - What scripts do you need file. Then you will see if it works for you, because for me it normally transfers all the information to the PVD database.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #33 on: May 02, 2025, 10:33:10 am »
I can see from the log file that there is no internet connection, which is why it is not transferring any information to you.

Below is the Scripts - What scripts do you need file, which has all the necessary folders and files that you must have in the Scripts folder of the PVD program, except for the chromedriver.exe file, which can be found at the links below in the quote section.

Quote
Chromedriver:
1. chromedriver   win32   https://storage.googleapis.com/chrome-for-testing-public/134.0.6998.88/win32/chromedriver-win32.zip
2. chromedriver   win64   https://storage.googleapis.com/chrome-for-testing-public/134.0.6998.88/win64/chromedriver-win64.zip

Unzip the Scripts - What scripts do you need file and then check if you also have all the files in your folder at D:\Game\pvd\Scripts\ plus the chromedriver.exe file. If you are missing something, first make a copy of the original Scripts folder, then add the missing files to the original Scripts folder or copy the entire Scripts folder from the Scripts - What scripts do you need file. Then you will see if it works for you, because for me it normally transfers all the information to the PVD database.
should the file "chromedriver.exe" also be in the folder "\pvd\Scripts\"?

Tried to copy "chromedriver.exe" both to the SCRIPT folder and to the root of the PVD folder - no difference. Information is not imported. Plus - deleted all old scripts and left only selenium files. Information is not imported. And a constant message (screenshot)
« Last Edit: May 02, 2025, 11:15:50 am by Pacifist »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #34 on: May 02, 2025, 01:08:56 pm »
should the file "chromedriver.exe" also be in the folder "\pvd\Scripts\"?

Yes, it must be, otherwise it won't work.

You have Google Chrome and Python installed on your computer. If you don't have it, install it, otherwise you have a problem somewhere else on your computer that is not allowing you to download information from the IMDb site. Maybe there are some settings or something else that is blocking you from downloading information from the IMDb site.

Do you see any python script txt log files in the Scripts\Tmp folder.

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


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #35 on: May 02, 2025, 04:46:13 pm »
should the file "chromedriver.exe" also be in the folder "\pvd\Scripts\"?

Yes, it must be, otherwise it won't work.

You have Google Chrome and Python installed on your computer. If you don't have it, install it, otherwise you have a problem somewhere else on your computer that is not allowing you to download information from the IMDb site. Maybe there are some settings or something else that is blocking you from downloading information from the IMDb site.

Do you see any python script txt log files in the Scripts\Tmp folder.

What version (source) of Python do you recommend? So that there is nothing extra.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #36 on: May 03, 2025, 06:56:17 am »
What version (source) of Python do you recommend? So that there is nothing extra.

One of the ones listed below, it is best to use Python 3.12.10.

Python 3.13.3, 3.12.10, 3.11.12

I am using Python 3.13.3 and it works great.

Also read this Python (+Selenium) Chrome general script topic for help.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #37 on: May 03, 2025, 07:32:45 am »
What version (source) of Python do you recommend? So that there is nothing extra.

One of the ones listed below, it is best to use Python 3.12.10.

Python 3.13.3, 3.12.10, 3.11.12

I am using Python 3.13.3 and it works great.

Also read this Python (+Selenium) Chrome general script topic for help.
Sorry, but this is a dark forest for me. Install Chrome and Python - yes, I can. Copy scripts - I can too. But I can't edit the paths in the scripts myself. I can't even figure out what to do with selenium_script-Chrome.py. Just copy it to the \pvd\Scripts\ folder? Maybe it's possible to put EVERYTHING you need into one package, so that it's already in the archive in the right folders?

Besides, I can't figure it out. Do I need to do any other manipulations with these scripts after or before running PVD? Or, if everything is already installed and all the paths are specified, then the information is downloaded as usual? I ran PVD, selected a movie, ran the import script...

if possible, describe this line point by point
FileExecute ('pythonw.exe', '"' + ScriptPath + 'selenium_script-Chrome.py" "' + URL + '" "' + ScriptPath + BASE_DOWNLOAD_FILE_NO_BOM + '"');

1, Here is my path to "python" c:\Users\хххх\AppData\Local\Programs\Python\Python313\pythonw.exe"
2, My path to "chromedriver.exe" and to "selenium_script-Chrome.py"
e:\Film\!PersonalVideoDB\Scripts\
What will the fully specified path look like in my case, in which file should it be specified and on which line of this file?

HELP! HELP! HELP!!!  :'(
« Last Edit: May 03, 2025, 01:47:43 pm by Pacifist »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2847
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #38 on: May 03, 2025, 03:36:17 pm »
Sorry, but this is a dark forest for me. Install Chrome and Python - yes, I can. Copy scripts - I can too. But I can't edit the paths in the scripts myself. I can't even figure out what to do with selenium_script-Chrome.py. Just copy it to the \pvd\Scripts\ folder? Maybe it's possible to put EVERYTHING you need into one package, so that it's already in the archive in the right folders?

Since I have already described and added the complete Scripts - What scripts do you need package you need, you do not need this selenium_script-Chrome.py script now. 
I can see from the log file that there is no internet connection, which is why it is not transferring any information to you.

Below is the Scripts - What scripts do you need file, which has all the necessary folders and files that you must have in the Scripts folder of the PVD program, except for the chromedriver.exe file, which can be found at the links below in the quote section.

Quote
Chromedriver:
1. chromedriver   win32   https://storage.googleapis.com/chrome-for-testing-public/134.0.6998.88/win32/chromedriver-win32.zip
2. chromedriver   win64   https://storage.googleapis.com/chrome-for-testing-public/134.0.6998.88/win64/chromedriver-win64.zip

Unzip the Scripts - What scripts do you need file and then check if you also have all the files in your folder at D:\Game\pvd\Scripts\ plus the chromedriver.exe file. If you are missing something, first make a copy of the original Scripts folder, then add the missing files to the original Scripts folder or copy the entire Scripts folder from the Scripts - What scripts do you need file. Then you will see if it works for you, because for me it normally transfers all the information to the PVD database.
  Only chromedriver.exe (size around 18 mb) is missing in the complete package, because otherwise it is not possible to edit the complete package. Scripts - What scripts do you need file plus the chromedriver.exe file copy to e:\Film\!PersonalVideoDB\ path


Besides, I can't figure it out. Do I need to do any other manipulations with these scripts after or before running PVD? Or, if everything is already installed and all the paths are specified, then the information is downloaded as usual? I ran PVD, selected a movie, ran the import script...

No, you don't need any other manipulation because everything is sorted. In your case, there was nothing because you didn't have the right scripts. Once everything is installed and all paths are defined, the data will be transferred as usual, but with a slightly longer data transfer time.



if possible, describe this line point by point
FileExecute ('pythonw.exe', '"' + ScriptPath + 'selenium_script-Chrome.py" "' + URL + '" "' + ScriptPath + BASE_DOWNLOAD_FILE_NO_BOM + '"');

Za vsak v4.py script je že določena pot
652 / 5.000
For each _v4.py script, there is already a path to IMDB_Movies_[EN][Selenium]-v4.psf for each Selenium_Chrome script. This should not be changed, otherwise the scripts will not work. Everything listed in this line will start working when you run the IMDB_Movies_[EN][Selenium]-v4.psf script and pythonw.exe will start and then all IMDb websites listed in the IMDB_Movies_[EN][Selenium]-v4.psf script will start downloading (BASE_DOWNLOAD_FILE_NO_BOM and similar files). After all these files are downloaded to your e:\Film\!PersonalVideoDB\Scripts\Tmp\ path, the downloaded information for a specific movie will be added to your PVD database.


1, Here is my path to "python" c:\Users\хххх\AppData\Local\Programs\Python\Python313\pythonw.exe"

pythonw.exe will automatically start when the IMDB_Movies_[EN][Selenium]-v4.psf script is run.

2, My path to "chromedriver.exe" and to "selenium_script-Chrome.py"
e:\Film\!PersonalVideoDB\Scripts\
What will the fully specified path look like in my case, in which file should it be specified and on which line of this file?

Also nowhere, because the e:\Film\!PersonalVideoDB\Scripts\ path will be automatically detected when the IMDB_Movies_[EN][Selenium]-v4.psf script is there and will run. But you must have the Scripts folder copied from the Scripts - What scripts do you need file with all the files in it plus the chromedriver.exe file there.
« Last Edit: May 03, 2025, 03:41:28 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 Pacifist

  • User
  • ***
  • Posts: 85
    • View Profile
Re: PVD Selenium MOD v4 IMDb Movie Script Confusion
« Reply #39 on: May 03, 2025, 04:45:17 pm »
ok. Python is installed. Chrome (latest version) is present. All Selenium scripts are present. I don't need to register anything additionally myself. Then why is there always the same message and a complete lack of information? Why aren't there even temporary swap files in the \Scripts\Tmp\ folder. Although they are present when using NON-Selenium scripts. I even tried to turn on VPN due to the peculiarities of the Internet in the country. Zero...  ??? ??? ??? ???