English > PVD Python Scripts

PVD Selenium MOD v4 IMDb Movie Script Confusion

<< < (11/15) > >>

Pacifist:

--- Quote from: Ivek23 on May 08, 2025, 08:31:52 am ---
--- Quote ---(06.05.2025 20:30:28) Function GetDownloadURL -      IMDB URL.
(06.05.2025 20:30:28) Function GetDownloadURL -      Mode=smSearch: Parse stored information DownloadURL: https://www.imdb.com/title/tt1543920/ | |
(06.05.2025 20:30:28) Function GetDownloadURL END====================== with Mode=1 (smNormal) with Result=D:\!PersonalVideoDB\Scripts\BE_PATIENT_PLEASE-DOWNLOADING_DATA |
(06.05.2025 20:30:28) Searching movie information for: Return, The
(06.05.2025 20:30:28) Function ParsePage: Starting processing.
(06.05.2025 20:30:28) Function ParsePage - HTML length: 34
(06.05.2025 20:30:28) Function ParsePage BEGIN====================== |
(06.05.2025 20:30:28) Function ParsePage - Global Var: Mode|1 |
(06.05.2025 20:30:28) Function ParsePage - Global Var: DownloadURL| https://www.imdb.com/title/tt1543920/ |
(
--- End quote ---
Even searching for the movie title is not correct, as you can see below.

--- Quote ---(8.05.2025 08:35:14) Function GetDownloadURL -      IMDB URL.
(8.05.2025 08:35:14) Function GetDownloadURL -      Mode=smSearch: Parse stored information DownloadURL: https://www.imdb.com/title/tt1543920/ | |
(8.05.2025 08:35:14) Function GetDownloadURL END====================== with Mode=1 (smNormal) with Result=D:\MyTest-PVD\Pacifist\!PersonalVideoDB\Scripts\BE_PATIENT_PLEASE-DOWNLOADING_DATA |
(8.05.2025 08:35:14) Searching movie information for: Turtles Forever
(8.05.2025 08:35:14) Function ParsePage: Starting processing.
(8.05.2025 08:35:14) Function ParsePage - HTML length: 34
(8.05.2025 08:35:14) Function ParsePage BEGIN====================== |
(8.05.2025 08:35:14) Function ParsePage - Global Var: Mode|1 |
(8.05.2025 08:35:14) Function ParsePage - Global Var: DownloadURL| https://www.imdb.com/title/tt1543920/ |
(8.05.2025 08:35:14) Function ParsePage - Local Var: URL|  |

--- End quote ---


--- Quote ---(06.05.2025 20:30:28) Function GetPvdConfigOptions - completed.
(06.05.2025 20:30:28)       Function DownloadPage -      Download attempt with Selenium in file:| D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm the information of the Main page: |https://www.imdb.com/title/tt1543920/ | |
(06.05.2025 20:30:28)       Function DownloadPage -      Download started with Selenium in file:| D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm the information of the Main Page: |https://www.imdb.com/title/tt1543920/ | |
(06.05.2025 20:30:28)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:30:38)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:30:48)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:30:58)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:31:08)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:31:18)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:31:45)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:31:55)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:32:05)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:32:15)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:32:25)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:32:35)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:32:47)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:32:57)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:33:07)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:33:17)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:33:27)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:33:37)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:33:52)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:34:02)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:34:12)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:34:22)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:34:32)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:34:42)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(06.05.2025 20:34:53)       Function DownloadPage ENDED for MainPage with NO INTERNET connection =============== |

--- End quote ---

Here, it reports an error that you don't have an internet connection. This means that the Selenium_Chrome_Base_page_v4.py script does not allow you to continue downloading the downpage-UTF8_NO_BOM.htm file. Apparently, the problem is possible in Win7 or you have blocked access to download information from the Imdb page or in the Selenium_Chrome_Base_page_v4.py script itself, where something is written in the Selenium_Chrome_Base_page_v4.py script code that blocks you from continuing the download process of the entire source code of the IMDb base page.

For me, it continues normally, as you can see below.

--- Quote ---(8.05.2025 08:35:15) Function GetPvdConfigOptions - completed.
(8.05.2025 08:35:15)       Function DownloadPage -      Download attempt with Selenium in file:| D:\MyTest-PVD\Pacifist\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm the information of the Main page: |https://www.imdb.com/title/tt1543920/ | |
(8.05.2025 08:35:15)       Function DownloadPage -      Download started with Selenium in file:| D:\MyTest-PVD\Pacifist\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm the information of the Main Page: |https://www.imdb.com/title/tt1543920/ | |
(8.05.2025 08:35:15)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\MyTest-PVD\Pacifist\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(8.05.2025 08:35:25)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\MyTest-PVD\Pacifist\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(8.05.2025 08:35:35)       Function DownloadPage -       Waiting 10s for the presence of the Main page: D:\MyTest-PVD\Pacifist\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(8.05.2025 08:35:45)       Function DownloadPage -      Complete Main page file that is now present: D:\MyTest-PVD\Pacifist\!PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(8.05.2025 08:35:45) Function DownloadPage - Value of MainPageDownloaded: True
(8.05.2025 08:35:45) Function DownloadPage - if it's Series there will be MediaType: || or...
(8.05.2025 08:35:45) Function DownloadPage - if it's Series there will be category: Movie||
(8.05.2025 08:35:45) Function DownloadPage - Skipping download for FullCredits page as per configuration.
(8.05.2025 08:35:45) Function DownloadPage - EXCLUDED_FILES: downpage-UTF8_NO_BOM-FullCredits.htm|  |
(
--- End quote ---


To potentially fix the problem, I would advise you to use, for example, ChatGPT, which uses AI. Perhaps you will be able to solve your problems with PVD with its help.

--- End quote ---

I have Windows 10. I have added everything possible to the firewall permissions. chromedriver.exe, Python, SeleniumPVDbScriptsConfig-v4.exe, Selenium_Chrome_Base_page_v4.py. I have disabled the antivirus. I have turned VPN on and off. Nothing helps. It is a shame that when using old IMDB scripts, the files downpage-UTF8_NO_BOM.htm and downimage-BIN-Poster.jpg are created. Note: this has never happened with any program. Too bad..... The old IMDB scripts have stopped downloading information in recent months, and the new ones do not work for me. RIP...

Ivek23:

--- Quote from: Pacifist on May 11, 2025, 01:04:32 pm ---I have Windows 10. I have added everything possible to the firewall permissions. chromedriver.exe, Python, SeleniumPVDbScriptsConfig-v4.exe, Selenium_Chrome_Base_page_v4.py. I have disabled the antivirus. I have turned VPN on and off. Nothing helps. It is a shame that when using old IMDB scripts, the files downpage-UTF8_NO_BOM.htm and downimage-BIN-Poster.jpg are created. Note: this has never happened with any program. Too bad..... The old IMDB scripts have stopped downloading information in recent months, and the new ones do not work for me. RIP...
--- End quote ---

Too bad, to hear this.

It's interesting that the old IMDB scripts work for you, but the new versions of IMDb scripts using Python and Selenium unfortunately don't. What's wrong here that the new versions of IMDb scripts don't work for you is hard to say and figure out. The fact is that the new versions of IMDb scripts using Python and Selenium unfortunately don't work for you for certain reasons and the code written in them. It would be necessary to change parts of the code in them, so that then maybe it would work for you. Maybe a solution will be found when the Afrocuban user returns.

Ivek23:
I think I found the reason why it's not working for you. It's likely that the following Python libraries are not installed.
--- Quote ---pip install requests beautifulsoup4
--- End quote ---

Do this:

--- Quote ---Open a terminal or command prompt:
On Windows: search for "cmd" or "PowerShell".
--- End quote ---

Type the following in the command prompt to install the appropriate library:

--- Quote ---pip install requests beautifulsoup4
--- End quote ---

Once this is installed, it should work. I know this from my own experience on Win11, where it didn't work before, just like you. But when I installed this library, everything worked without problems with Geckodriver, which is added to the same Scripts folder where the scripts are already.

I will also send you a new version of your !PersonalVideoDB program, where everything is already set up to work with Geckodriver.

Pacifist:

--- Quote from: Ivek23 on May 24, 2025, 01:14:17 pm ---I think I found the reason why it's not working for you. It's likely that the following Python libraries are not installed.
--- Quote ---pip install requests beautifulsoup4
--- End quote ---

Do this:

--- Quote ---Open a terminal or command prompt:
On Windows: search for "cmd" or "PowerShell".
--- End quote ---

Type the following in the command prompt to install the appropriate library:

--- Quote ---pip install requests beautifulsoup4
--- End quote ---

Once this is installed, it should work. I know this from my own experience on Win11, where it didn't work before, just like you. But when I installed this library, everything worked without problems with Geckodriver, which is added to the same Scripts folder where the scripts are already.

I will also send you a new version of your !PersonalVideoDB program, where everything is already set up to work with Geckodriver.

--- End quote ---
Hi. Hurray, it helped!!!! I pressed REPEAT (sic!) 2-3 times while loading the information and everything loaded. Almost. For some reason the line "Also known as" is empty. Although you have it filled in for the same film. The "Also known as" mark is set in the plugin settings...
Many thanks for the help and resuscitation of PVD!!!!
P.S. And the last question. For today ;-). And for TV series it doesn't work yet?

Ivek23:

--- Quote from: Pacifist on May 26, 2025, 04:05:54 pm ---Hi. Hurray, it helped!!!! I pressed REPEAT (sic!) 2-3 times while loading the information and everything loaded. Almost. For some reason the line "Also known as" is empty. Although you have it filled in for the same film. The "Also known as" mark is set in the plugin settings...
Many thanks for the help and resuscitation of PVD!!!!
P.S. And the last question. For today ;-). And for TV series it doesn't work yet?

--- End quote ---

That was nice to hear and I'm also glad that PVD was able to be revived.

I know about the problem with the "Also known as" information transfer box. Try reloading all the information. If there is still no information, try the refresh button or try another movie file or restart pvd. Maybe then it will be better.

As for the TV series data transfer, the entire E P I S O D E L I S T code is blocked, because at that time there was a problem with the pop-up windows and it was necessary to interrupt the information transfer, leaving empty fields in the database. Where the problem is here, I don't know, because I didn't find anything wrong in the code. Maybe an Afrocuban user will find a way to solve this problem when he comes back.

For now, let's leave it as it is and let's solve any errors and other problems if it possible.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version