English > PVD Python Scripts
PVD Selenium MOD v4 IMDb Movie Script Confusion
Pacifist:
--- Quote from: Ivek23 on May 02, 2025, 01:08:56 pm ---
--- Quote from: Pacifist on May 02, 2025, 10:33:10 am ---should the file "chromedriver.exe" also be in the folder "\pvd\Scripts\"?
--- End quote ---
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.
--- End quote ---
What version (source) of Python do you recommend? So that there is nothing extra.
Ivek23:
--- Quote from: Pacifist on May 02, 2025, 04:46:13 pm ---What version (source) of Python do you recommend? So that there is nothing extra.
--- End quote ---
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.
Pacifist:
--- Quote from: Ivek23 on May 03, 2025, 06:56:17 am ---
--- Quote from: Pacifist on May 02, 2025, 04:46:13 pm ---What version (source) of Python do you recommend? So that there is nothing extra.
--- End quote ---
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.
--- End quote ---
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!!! :'(
Ivek23:
--- Quote from: Pacifist on May 03, 2025, 07:32:45 am ---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?
--- End quote ---
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.
--- Quote from: Ivek23 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
--- End quote ---
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.
--- End quote ---
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
--- Quote from: Pacifist on May 03, 2025, 07:32:45 am ---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...
--- End quote ---
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.
--- Quote from: Pacifist on May 03, 2025, 07:32:45 am ---if possible, describe this line point by point
FileExecute ('pythonw.exe', '"' + ScriptPath + 'selenium_script-Chrome.py" "' + URL + '" "' + ScriptPath + BASE_DOWNLOAD_FILE_NO_BOM + '"');
--- End quote ---
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.
--- Quote from: Pacifist on May 03, 2025, 07:32:45 am ---1, Here is my path to "python" c:\Users\хххх\AppData\Local\Programs\Python\Python313\pythonw.exe"
--- End quote ---
pythonw.exe will automatically start when the IMDB_Movies_[EN][Selenium]-v4.psf script is run.
--- Quote from: Pacifist on May 03, 2025, 07:32:45 am ---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?
--- End quote ---
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.
Pacifist:
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... ??? ??? ??? ???
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version