English > Support

Imdb People script issues

<< < (6/9) > >>

Ivek23:
This solo IMDB_People_[EN][HTTPS]_Awards 1 script with selenium transfers the awards data to the awards field without any problems. The regular IMDB_People_[EN][HTTPS]_Awards 2 script for the PVD MOD version also transfers the awards data to the awards field without any problems

The problem is in your IMDB_People_[EN][HTTPS]-Awards script, because this script did not add any awards data to the awards field for me either.

I already know where the problem is. For me, it transfers downpage-UTF8_NO_BOM.htm for the awards from the website, but for you, the problem is probably the parsing for the awards at the end of the script

afrocuban:
Thanks for the quick feedback, Ivek. I have 2 questions I'm puzzled with now.
1. What selenium script do you use to download person's page? Is it the same one for aka?
2. I tried to put Awards function to the beginning of the script, at the same place where it is in your scripts too: just after the Function ParsePage_IMDBSearchName, but nothing different happened, so it's not about that it looks, or I didn't understand your remark?


Now, I tried regular IMDB_People_[EN][HTTPS]_Awards 2 script for the PVD MOD version you posted, but even that one didn't populate any award to my database, unlike for you. So, it's probably something with my database then, what do you think?

Ivek23:

--- Quote from: afrocuban on December 29, 2024, 08:48:33 pm ---Thanks for the quick feedback, Ivek. I have 2 questions I'm puzzled with now.
1. What selenium script do you use to download person's page? Is it the same one for aka?
--- End quote ---

It is the same selenium script as for aka and I can download both the movies and people awards data with your awards code.


--- Quote from: afrocuban on December 29, 2024, 08:48:33 pm ---2. I tried to put Awards function to the beginning of the script, at the same place where it is in your scripts too: just after the Function ParsePage_IMDBSearchName, but nothing different happened, so it's not about that it looks, or I didn't understand your remark?
--- End quote ---

The problem is in the name of the file extension Tmp\UTF8_NO_BOM-Awards.mhtml. Change it to .htm and it should work.


--- Quote from: afrocuban on December 29, 2024, 08:48:33 pm ---Now, I tried regular IMDB_People_[EN][HTTPS]_Awards 2 script for the PVD MOD version you posted, but even that one didn't populate any award to my database, unlike for you. So, it's probably something with my database then, what do you think?
--- End quote ---

It's probably not your database, maybe you don't have the awards field marked, because it was the same for me until I checked the awards field in the settings, after that it transferred the awards data to the awards fields without any problems.

afrocuban:

--- Quote from: Ivek23 on December 29, 2024, 09:33:22 pm ---
It is the same selenium script as for aka and I can download both the movies and people awards data with your awards code.
--- End quote ---
Thanks! Do you get all awards with it, or only "static" ones?

--- Quote from: Ivek23 on December 29, 2024, 09:33:22 pm ---The problem is in the name of the file extension Tmp\UTF8_NO_BOM-Awards.mhtml. Change it to .htm and it should work.

--- End quote ---
Wait WHAT? It works THIS WAY, thanks a lot(!) but where and why on Earth that comes from? What htm or mhtml has to do with database at all?

--- Quote from: Ivek23 on December 29, 2024, 09:33:22 pm ---It's probably not your database, maybe you don't have the awards field marked, because it was the same for me until I checked the awards field in the settings, after that it transferred the awards data to the awards fields without any problems.

--- End quote ---
You were right. Scripts were set to "- Set if empty" It works now, of course.


But, I'm still puzzled, not to say shocked about htm and mhtml...

Ivek23:

--- Quote from: afrocuban on December 29, 2024, 11:43:21 pm ---
--- Quote from: Ivek23 on December 29, 2024, 09:33:22 pm ---
It is the same selenium script as for aka and I can download both the movies and people awards data with your awards code.
--- End quote ---
Thanks! Do you get all awards with it, or only "static" ones?
--- End quote ---

A regular script only transfers "static" awards data, while with selenium it transfers all awards data.


--- Quote from: afrocuban on December 29, 2024, 11:43:21 pm ---
--- Quote from: Ivek23 on December 29, 2024, 09:33:22 pm ---The problem is in the name of the file extension Tmp\UTF8_NO_BOM-Awards.mhtml. Change it to .htm and it should work.

--- End quote ---

Wait WHAT? It works THIS WAY, thanks a lot(!) but where and why on Earth that comes from? What htm or mhtml has to do with database at all?
--- End quote ---

Your IMDB_People_[EN][HTTPS]-Awards script also uses the .htm extension for transferring all other data, except for transferring awards data, which file is not transferred to the Tmp folder by the script. This is what I meant when I mentioned the change at the end of the script, or an additional change is needed at the beginning of the script. For example, this needs to be added there.
--- Quote ---BASE_DOWNLOAD_FILE_NO_BOM-AWARDS  = 'Tmp\UTF8_NO_BOM-Awards.mhtml';
--- End quote ---

The selenium script will also transfer the same if you do not change the extension in it.


--- Quote from: afrocuban on December 29, 2024, 11:43:21 pm ---
--- Quote from: Ivek23 on December 29, 2024, 09:33:22 pm ---It's probably not your database, maybe you don't have the awards field marked, because it was the same for me until I checked the awards field in the settings, after that it transferred the awards data to the awards fields without any problems.

--- End quote ---
You were right. Scripts were set to "- Set if empty" It works now, of course.


But, I'm still puzzled, not to say shocked about htm and mhtml...

--- End quote ---

Great that it works now.

About htm and mhtml it has already been mentioned above.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version