Author Topic: People imdb script: additional information  (Read 37625 times)

0 Members and 1 Guest are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
People imdb script: additional information
« on: February 07, 2012, 02:01:50 pm »
Simpe People imdb script with additional information

Here is People imdb script with additional information which is People imdb plugin not transferred.

Additional information is transferred to the Comment field, except Alternate Names is transferred to the Alternative Names field.

Genre index [Imdb People(genre) script] is transferred to the Genre field.


Additional information:
  • People ID
  • IMDB web page Url
    • Biography - only Url link
    • Awards - only Url link
    • Genre - only Url link
    • Filmography by type - only Url link
    • External Links - only Url link
  • Main information Page
    • Name
    • Career
    • Filmography - only index
    • Birth Name
    • Date of Birth - full info
    • Date of Death - full info including with Age
    • Age
    • Alternate Names
    • Height
    • Nickname
    • Star Sign
  • Biography Page
    • Date of Birth - full info
    • Date of Death - full info
    • Birth Name
    • Nickname
    • Height
    • Spouse - full info
  • Genre page
    • Genre index - only index
  • Filmography by type page
    • Filmography by type - only index
  • External Links
    • Miscellaneous Links - only a few url links index
    • Photographs - only a few url links index
Added is also link to the Biography, Awards and Genre site. Also added a few url links to some sites where information and photo galleries of people, if those links exist on Imdb External pages.

NOTICE:

Entries have already been      -    the black color
Entries are added      -     the blue color
Entries are removed      -    the red color




There is added a more extensive People imdb script with additional information which will come to full force only when the PVD also support custom fields for the people.



There is also added Imdb People(genre) and IMDb People Photo Script.



For guests :
All of these scripts for download can be found in IMDB People Links topic.

http://www.videodb.info/forum_en/index.php/topic,4043.0.html



For guests :
There below is a link to the Russian part of the forum where you can get:

---------------------------------

Imdb People script

http://www.videodb.info/forum_ru/index.php/topic,753.msg14734.html#msg14734

Imdb People(genre) script

http://www.videodb.info/forum_ru/index.php/topic,753.msg14735.html#msg14735

IMDb People Photo Script

http://www.videodb.info/forum_ru/index.php/topic,753.msg14527.html#msg14527

« Last Edit: October 18, 2016, 02:49:25 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 rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: People imdb script: additional information
« Reply #1 on: February 08, 2012, 01:17:43 am »
Nice work. Thanks!

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #2 on: February 08, 2012, 05:51:18 pm »
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: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #3 on: February 11, 2012, 01:50:52 pm »
I fixed only the code for Search Result.

Script is the first post attached.

Here is a script archive attached.

[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline woland68

  • User
  • ***
  • Posts: 31
    • View Profile
Re: People imdb script: additional information
« Reply #4 on: April 07, 2012, 06:37:29 pm »
 :) Hello Ivek32, and can add these other fields

Actress - TV:
Actress - video:
Self - TV:
Additional Details
Other Works:
Publicity Listings:


http://www.imdb.com/name/nm0253414/filmotype


 
     

thanks

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #5 on: April 08, 2012, 07:19:28 am »
:) Hello Ivek32, and can add these other fields

Actress - TV:
Actress - video:
Self - TV:
Additional Details
Other Works:
Publicity Listings:


http://www.imdb.com/name/nm0253414/filmotype


 
     

thanks

I'm sorry, I must disappoint you. Not yet,
because PVD does not yet support custom fields for the people
and it is possible in the future as mentioned
which will come to full force only when the PVD also support custom fields for the people.
So far it does not work properly in the transfer of data info in the comment box, is verified and tested, because I tried this
Quote
Filmography
Jump to filmography as: Actress, Actress - TV, Actress - video, Self - TV
added in the comment box, however, there was no proper transfer of data.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline woland68

  • User
  • ***
  • Posts: 31
    • View Profile
Re: People imdb script: additional information
« Reply #6 on: April 08, 2012, 07:31:13 am »
 :( Ok Thank,

I understand,

another question

I tried using the script imdb_people, you changed, enter the data, but unfortunately does not add the filmography, I have to do this:
1: imdb_people script (for additional details) no filmography
2: imdb script (for more information + filmography)
you can integrate scripts imdb_people + imdb to speed data entry?

thanks

sorry for my english (I'm Italian)

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #7 on: April 08, 2012, 12:05:34 pm »
:( Ok Thank,

I understand,

another question

I tried using the script imdb_people, you changed, enter the data, but unfortunately does not add the filmography, I have to do this:
1: imdb_people script (for additional details) no filmography
2: imdb script (for more information + filmography)
you can integrate scripts imdb_people + imdb to speed data entry?

thanks

sorry for my english (I'm Italian)

If I understood correctly, is now using so imdb_people script specifically as also imdb people plugin specifically, we would like to have both simultaneously in use. This is the smallest problem, makes the batch file and both will work simultaneously (one connects to another). That does not would be problems, I add my batch file for an example of how this works for me and how you can make yourself similar batch file for connection with, among others script and plugin.

People imdb Full batch file in zip format attached.

[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline woland68

  • User
  • ***
  • Posts: 31
    • View Profile
Re: People imdb script: additional information
« Reply #8 on: April 08, 2012, 12:55:44 pm »
 ??? works, but when you download the photo of actor and in low resolution.
tested
1) imdb  [high-resolution photo]
2) imdb+script batch [low-res photos]

Solution?  ::)

screen

High resolution [Script Imdb [ENG]

 

Low resolution [Script Imdb+Imdb_people


     
« Last Edit: April 08, 2012, 01:05:39 pm by woland68 »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #9 on: April 08, 2012, 02:42:41 pm »
??? works, but when you download the photo of actor and in low resolution.
tested
1) imdb  [high-resolution photo]
2) imdb+script batch [low-res photos]

Solution?  ::)

screen

High resolution [Script Imdb [ENG]

 

Low resolution [Script Imdb+Imdb_people


   

This was due to transfer photos from the Biography Page or Genre index page.
Yes, it is a solution. Now I disabled the transfer of photos to these pages. Here is also available on the revised Imdb People extra script.

Imdb People extra script attached.



Notice:

I have not repaired Imdb Extra People, because the PVD Does not yet support custom fields for the People.

All you need to pass the current script, script is here.

[attachment deleted by admin]
« Last Edit: January 08, 2013, 08:02:21 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 Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #10 on: April 08, 2012, 02:52:53 pm »
Or, in your script do this
Code: [Select]
procedure ParseBiography(BiographyURL : String; HTML : String);
var
curPos, endPos: Integer;
Name, URL, TmpStr, TmpStr1, TmpStr2, TmpStr3, TmpStr4 : String;
begin

fullinfo2 := fullinfo1+fullinfo2;
fullinfo2 := fullinfo2;

//Get ~Biography URL~
endPos := Pos('"og:url" content="', HTML);
if endPos > 0 then begin
curPos := PrevPos('<link rel="canonical" href="', HTML, endPos);
ExtraLinks[smBiography] := Copy(HTML, curPos+28, endPos - curPos-47);
fullinfo2 := fullinfo2 + '<link url="' + ExtraLinks[smBiography] + '">Biography Page</link>'+ #13 ;
LogMessage(fullinfo2);
end;

(*
//~Poster~
curPos := PosFrom('><img border="0" src="', HTML, endPos);
if curPos > 0 then begin
curPos := curPos + Length('><img border="0" src="');
endPos := PosFrom('" ', HTML, curPos);
ExtraLinks[smPoster] := Copy(HTML, curPos, EndPos - curPos);
end;
*)

// Biography Page
and this
Code: [Select]
procedure ParseGenreindex(GenreindexURL : String; HTML : String);
var
curPos, endPos: Integer;
Name, URL, TmpStr, TmpStr1, TmpStr2, TmpStr3, TmpStr4 : String;
begin

//Get ~Genre index URL~
endPos := Pos('"og:url" content="', HTML);
if endPos > 0 then begin
curPos := PrevPos('<link rel="canonical" href="', HTML, endPos);
ExtraLinks[smGenreindex] := Copy(HTML, curPos+28, endPos - curPos-47);
end;

(*
//~Poster~
curPos := PosFrom('><img border="0" src="', HTML, endPos);
if curPos > 0 then begin
curPos := curPos + Length('><img border="0" src="');
endPos := PosFrom('" ', HTML, curPos);
ExtraLinks[smPoster] := Copy(HTML, curPos, EndPos - curPos);
end;
*)

//~Genre index~
  well, and the same will result.

Here is the updated code for ParseSearchResult
Code: [Select]
procedure ParseSearchResults(HTML : String);
var
curPos, endPos : Integer;
Name, Name1, URL, Preview : String;
begin
curPos := Pos('<div id="content-2-wide">', HTML);
if curPos < 1 then
Exit;

LogMessage('Parsing search results...');

    curPos  := PosFrom('"><img src="', HTML, curPos)+12;
endPos  := PosFrom('.jpg" width="23" height="32" border="0">', HTML, curPos);
Preview := Trim(Copy(HTML, curPos, endPos - curPos));
curPos := PosFrom('<a href="/name/', HTML, curPos);
while curPos > 0 do begin
endPos := PosFrom('" onclick="(new Image()).src=', HTML, curPos);
URL := Trim(Copy(HTML, curPos+9, endPos - curPos-9));
URL := BASE_URL + URL;
curPos := PosFrom('">', HTML, curPos)+2;
endPos := PosFrom('</small>', HTML, curPos);
Name := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);
    curPos  := PosFrom('"><img src="', HTML, curPos)+12;
endPos  := PosFrom('.jpg" width="23" height="32" border="0">', HTML, curPos);
Preview := Trim(Copy(HTML, curPos, endPos - curPos));
AddSearchResult(Name, '', '', URL, '');
curPos := PosFrom('<a href="/name/', HTML, curPos);
 end;
end;
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline woland68

  • User
  • ***
  • Posts: 31
    • View Profile
Re: People imdb script: additional information
« Reply #11 on: April 08, 2012, 03:45:13 pm »
 :) Now work well

Thank you

Grazie

 ??? ??? ???

Is there a script for people to import photos?
example Google or Bing
« Last Edit: April 08, 2012, 04:16:13 pm by woland68 »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #12 on: April 08, 2012, 05:57:24 pm »
Is there a script for people to import photos?
example Google or Bing

For Google or Bing the answer is no, except for the manual transfer of files from web pages. Yes, there are ImdbImage to transfer photos from Imdb.

ImdbImage attached.



[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline woland68

  • User
  • ***
  • Posts: 31
    • View Profile
Re: People imdb script: additional information
« Reply #13 on: April 08, 2012, 06:30:43 pm »
 ???
I tried, it only matters a photo, the others are outside the database

I do not understand how many pictures are exported to a person

have screens to explain the procedure?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #14 on: April 09, 2012, 06:31:13 am »
???
I tried, it only matters a photo, the others are outside the database

I do not understand how many pictures are exported to a person

have screens to explain the procedure?

Since PVD for people does not support photos on same way as it supports the posters for movies is required each time especially any photo of people save in this folder (for example, in folder PVD People Photo) on computer or disk, before being transferred to the next photo people. Once you have all the photos of people you like, be any photo of people especially in the photo box people which photos you already have stored in a folder.

An example of a person: John Wayne
Pictures attached.


[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline woland68

  • User
  • ***
  • Posts: 31
    • View Profile
Re: People imdb script: additional information
« Reply #15 on: April 09, 2012, 07:00:24 am »
 :( this procedure, and long and complicated, I know other programs to catalog films, which make the download of the photo of a person automatically,
because this program does not do this too?
It has lots of potential, but still immature in structure and organization of data

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: People imdb script: additional information
« Reply #16 on: April 09, 2012, 08:07:47 am »
Quote
It has lots of potential, but still immature in structure and organization of data

I disagree. It's not intended for collecting photos of people. Their primary purpose is for identification. I limit the number of people added to my database, and I still have over 15,000. I certainly do not want more than one added automatically. For a small portion of those, I do collect some high quality photos. In those cases, the photos are hand-picked. Using the beta version, I can copy them from wherever I find them and paste them to the container—it doesn't get easier than that. The result can then be shown as one photo and/or an image list—anywhere in the skin. While there will always be ways to improve it, the program seems the opposite of "immature" to me.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #17 on: April 09, 2012, 09:40:23 am »
Quote
It has lots of potential, but still immature in structure and organization of data

I disagree. It's not intended for collecting photos of people. Their primary purpose is for identification. I limit the number of people added to my database, and I still have over 15,000. I certainly do not want more than one added automatically. For a small portion of those, I do collect some high quality photos. In those cases, the photos are hand-picked. Using the beta version, I can copy them from wherever I find them and paste them to the container—it doesn't get easier than that. The result can then be shown as one photo and/or an image list—anywhere in the skin. While there will always be ways to improve it, the program seems the opposite of "immature" to me.

Thank you, Rick for further clarifications.
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: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #18 on: May 07, 2012, 04:18:12 pm »
In my People database is visible around 2400 people.

After lengthy testing is here corrected People imdb script (final testing were conducted on about 400 people). We welcome any feedback about the script (how the script works or, if they have any problems with the transfers of information).

07/05/2012
People imdb script v0.1.1.1


Corrections:

In ParsePeople:
- Corrected transposition of age
- Added Filmography Index


In ParseBiography:
- Repair all items, especially in Nickname ​​and Spouse and added links (visible below and to the attached images).

Example: Bill Clinton - attached image
Quote
Nickname:  The Man From Hope (Arkansas), Bubba , the Compromiser in Chief , Secretariat , The Wizard of "Is" , The Comeback Kid , Slick Willie , The first black president (given to him by <link url="http://www.imdb.com/name/nm0607339/">Toni Morrison</link>)

Example: Chevy Chase  - attached image
Quote
Spouse:  <link url="http://www.imdb.com/name/nm1903539/">Jayni Chase</link>,  (<link url="http://www.imdb.com/date/06-19/">19 June</link> 1982 - present) 3 children, <link url="http://www.imdb.com/name/nm0137509/">Jacqueline Carlin</link>,  (<link url="http://www.imdb.com/date/12-04/">4 December</link> 1976 - <link url="http://www.imdb.com/date/11-14/">14 November</link> 1980) (divorced), Susan Hewitt,  (<link url="http://www.imdb.com/date/02-23/">23 February</link> 1973 - <link url="http://www.imdb.com/date/02-01/">1 February</link> 1976) (divorced)


- Added Filmography by type
- Corrections ParseSearchResults


Removed:

In ParseBiography:
- Removed photo code


Currently Imdb People script in first post attached.

BTW: woland68,
Actress - TV:
Actress - video:
Self - TV:
Additional Details
Other Works:
Publicity Listings:


http://www.imdb.com/name/nm0253414/filmotype
Quote
Filmography
Jump to filmography as: Actress, Actress - TV, Actress - video, Self - TV
added in the comment box, however, there was no proper transfer of data.
is only partially realized your request (added in the comment box proper transfer of data).

[attachment deleted by admin]
« Last Edit: July 06, 2012, 04:23:45 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 Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: People imdb script: additional information
« Reply #19 on: May 07, 2012, 04:20:36 pm »
Notice:

I have not repaired Imdb Extra People, because the PVD Does not yet support custom fields for the People.

All you need to pass the current script, script is here.
« Last Edit: January 08, 2013, 08:04:18 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD