BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 IMDB Script (Complete) - several questions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

fege
Junior Member

Yugoslavia
152 Posts

Posted - 13 Apr 2008 :  01:35:13  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I have few questions about imdb script (complete).

1. I notice that when script collect writers, script doesn't look if the same name appear twice (typically because writer is credited for story and for the screenplay). Is it possible to fix that?

2. Is it possible to collect everything from Goofs and Trivia page. If I am not mistaken, currently script collect only 3 items from Trivia and Goofs page.

3. Is it possible to collect from box office/business page total US gross for the movie and put it in Custom 7. For example: movie Enchanted http://akas.imdb.com/title/tt0461770/business Gross: $127,706,877 (USA) (9 March 2008)

4. Is it possible that script collect Production Companies from Company credits page. Again I will use Enchanted as example.
There is 4 production companies: Walt Disney Pictures|Andalasia Productions|Josephson Entertainment|Sonnenfeld Josephson Worldwide Entertainment
I would like to put these companies in Studio field

Thanks in advance

fege
Junior Member

Yugoslavia
152 Posts

Posted - 23 Apr 2008 :  18:39:43  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am using IMDB complete script. With that script XMM gets all distributors. I am not interested in all Distributors, I am interested only in USA distributors. Is it possible to download only USA distributor(s). For example for a movie STEP UP, I a would like to store only Buena Vista Pictures (2006). Currently with script I get:
* Buena Vista Pictures (2006) (USA) (theatrical)
* SPI International (2006) (Czech Republic) (theatrical)
* Independent Films (2006) (Netherlands) (theatrical)
* Monolith (2006) (Poland) (theatrical)
* SPI International (2006) (Slovakia) (theatrical)
* United International Pictures (UIP) (2006) (Australia)
* United International Pictures (UIP) (2006) (New Zealand)
* Alfa Films (2007) (Argentina) (theatrical)
* Avex Entertainment (2007) (Japan) (theatrical)
* Odeon S.A. (2006) (Greece) (all media)
* Prorom Media-Trade (2006) (Romania) (all media)
* Shaw Organisation (2006) (Singapore) (theatrical)
* Studio 2.0 (2007) (South Korea) (theatrical)
* United International Pictures (UIP) (2006) (Switzerland)
* United International Pictures (UIP) (2006) (France) (theatrical)
* Warner Home Video (200?) (Netherlands)

Go to Top of Page

fege
Junior Member

Yugoslavia
152 Posts

Posted - 24 Apr 2008 :  15:03:57  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here is code which put Production Companies to Studio slot.
I made some changes to previous code.

#STUDIO#

//Must be taken from the Combined Details Section, Check if I have load it on the SLOT 4

//If WEBSLOT4 has data, the variable 54 must be at 1
#IF# #54#==#00#
// no Combined details available
#GOTO#=ENDTAKESTUDIO
#ENDIF#

//OK, slot 4 has data, I load it into memory
#LOADWEBSLOT4#
#STARTREADWEB#
#FINDLINE#=Production Companies</b>#10##ONERROR#=*OK*
#IF# #10#==#00#
// No photographers found
#GOTO#=ENDTAKESTUDIO
#ENDIF#
// Find the end of the photographers
#FIND#=</ul>#22##ONERROR#=*STOP*

#STARTREADWEB#
#FINDLINE#=Production Companies</b>#10##ONERROR#=*OK*

:REPEATSTUDIO
#FIND#=href="/company/co#11#
#IF# #11#==#00#
#GOTO#=ENDTAKESTUDIO
#ENDIF#
#IF# #11#>>#22#
// the search has gone past the photographers
#GOTO#=ENDTAKESTUDIO
#ENDIF#
// doesn't take iMDB style of name
#FIND#=>#14##ONERROR#=*OK*
#FIND#=<#12##ONERROR#=*OK*
#TAKEWORD#=#13#,#14#,#12#
#CHECKVARIABLE#=#13#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TAKESTUDIO#=#13#
#GOTO#=REPEATSTUDIO

:ENDTAKESTUDIO

//Reload the MAIN webpage
#RESTOREMAIN#

#ENDSTUDIO#

Go to Top of Page

fege
Junior Member

Yugoslavia
152 Posts

Posted - 24 Apr 2008 :  15:10:44  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Code which collect all GOOFS from IMDB

#CUSTOM10#

#IF# #87#==#00#
#GOTO#=ENDTAKEGOOFS
#ENDIF#

#RESTOREMAIN#
#STARTREADWEB#
#FINDLINE#=<a href="goofs"#15##ONERROR#=*STOP*
#//PUT#=0#55#
#IF# #15#<>#00#
// Goofs details available!! Now are stored on SLOT2
#PUT#=1#52#
#STRING#=#41#=#31#/title/tt#38#/goofs
#OPENWEBSLOT2#=#41#
#ENDIF#

#LOADWEBSLOT2#

#STARTREADWEB#

#FINDLINE#=<ul class="trivia">#12# #ONERROR#=*STOP*
#READNEXTLINE#

:CICLOGOOFS
#READNEXTLINE#

#FIND#=</ul>#13# #ONERROR#=*OK*

#IF# #13#<>#00#
#GOTO#=LABELGOOFS
#ENDIF#

#TAKEWORD#=#01#,#00#,#00#

#CHECKVARIABLE#=#01#
#CLEARTAGS#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TRIM#

#STRING#=#01#=#01# #NEWLINE#

#TAKECUSTOM10#=#01#
#GOTO#=CICLOGOOFS

:LABELGOOFS

#STRING#=#01#=#01# #NEWLINE#
#FIND#=<ul class="trivia">#12# #ONERROR#=*STOP*

:CICLOGOOFS
#READNEXTLINE#

#FIND#=</ul>#13# #ONERROR#=*OK*

#IF# #13#<>#00#
#GOTO#=LABELGOOFS
#ENDIF#

#TAKEWORD#=#01#,#00#,#00#

#CHECKVARIABLE#=#01#
#CLEARTAGS#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TRIM#

#STRING#=#01#=#01# #NEWLINE#

#TAKECUSTOM10#=#01#
#GOTO#=CICLOGOOFS

:ENDTAKEGOOFS
#RESTOREMAIN#

#ENDCUSTOM10#
Go to Top of Page

fege
Junior Member

Yugoslavia
152 Posts

Posted - 24 Apr 2008 :  15:12:08  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Code which puts all TRIVIA from IMDB

#CUSTOM11#

#IF# #86#==#00#
#GOTO#=ENDTAKETRIVIA
#ENDIF#

#RESTOREMAIN#
#STARTREADWEB#
#FINDLINE#=<a href="trivia"#15##ONERROR#=*STOP*
#//PUT#=0#55#
#IF# #15#<>#00#
// Trivia details available!! Now are stored on SLOT1
#PUT#=1#52#
#STRING#=#41#=#31#/title/tt#38#/trivia
#OPENWEBSLOT1#=#41#
#ENDIF#

#LOADWEBSLOT1#

#STARTREADWEB#

#FINDLINE#=<ul class="trivia">#12# #ONERROR#=*STOP*
#READNEXTLINE#

:CICLOTRIVIA
#READNEXTLINE#

#FIND#=</ul>#13# #ONERROR#=*OK*

#IF# #13#<>#00#
#GOTO#=LABELTRIVIA
#ENDIF#

#TAKEWORD#=#01#,#00#,#00#

#CHECKVARIABLE#=#01#
#CLEARTAGS#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TRIM#

#STRING#=#01#=#01# #NEWLINE#
#TAKECUSTOM11#=#01#

#GOTO#=CICLOTRIVIA


:LABELTRIVIA

#STRING#=#01#=#01# #NEWLINE#
#FIND#=<ul class="trivia">#12# #ONERROR#=*STOP*

:CICLOTRIVIA
#READNEXTLINE#

#FIND#=</ul>#13# #ONERROR#=*OK*

#IF# #13#<>#00#
#GOTO#=ENDTAKETRIVIA
#ENDIF#

#TAKEWORD#=#01#,#00#,#00#

#CHECKVARIABLE#=#01#
#CLEARTAGS#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TRIM#

#STRING#=#01#=#01# #NEWLINE#
#TAKECUSTOM11#=#01#

#GOTO#=CICLOTRIVIA


:ENDTAKETRIVIA

#RESTOREMAIN#

#ENDCUSTOM11#
Go to Top of Page

fege
Junior Member

Yugoslavia
152 Posts

Posted - 24 Apr 2008 :  21:24:23  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Code to put USA Gross to Custom7

--GROSS------------------------------------------------------------------------------------
#CUSTOM7#
//Must be taken from the Business Details Section, Check if I have load it on the SLOT 3

//If WEBSLOT3 has data, the variable 53 must be at 1
#IF# #53#==#00#
// no Business details available
#GOTO#=ENDTAKEGROSS
#ENDIF#

//OK, slot 3 has data, I load it into memory
#LOADWEBSLOT3#
#STARTREADWEB#
#FINDLINE#=<h5>Gross</h5>#10##ONERROR#=*OK*
#IF# #10#==#00#
// No Gross found
#GOTO#=ENDTAKEGROSS
#ENDIF#

#READNEXTLINE#
#FIND#=<br/#12##ONERROR#=*OK*
#TAKEWORD#=#13#,#00#,#12#
#CHECKVARIABLE#=#13#
#CLEARTAGS#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TRIM#
#TAKECUSTOM7#=#13#

:ENDTAKEGROSS

//Reload the MAIN webpage
#RESTOREMAIN#

#ENDCUSTOM7#
Go to Top of Page

donnyj
Junior Member

USA
138 Posts

Posted - 22 May 2008 :  05:25:12  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Alessio could you please check the above script parts and if they are good, add them to IMDB Complete?
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 1.14 sec. Powered By: Snitz Forums 2000 Version 3.4.07