BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Scripts
 A script to use google to get the IMDB link

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
davep Posted - 30 Sep 2021 : 18:38:32
I find that IMDB's serach engine is, well, a frustrating pain in the ....

It doesn't work well with alternate titles, doesn't include adult results, chooses a movie review show instead of the movie, and sometimes emits results completely.

For those results, I typically type in the movie title and date, and without exception I can recall, has provided the correct movie as its top result and the lovely poster/and info on the right of the search results. It inludes an IMDB link.

The search process, at least to me, seems to take far more time in the search aspect, than the data download side of things when importing - and using google to do that inititial movie identification would save a lot of time. When you're doing large batches of movies, this makes a big difference. As someone who tracks movies (blame my OCD), I'm often adding 50 movies a day.


I've been wondering for a while:

1. How hard would it be to make a script to

a. use google (needing users to put in the own google api key?) to find the IMDB link of the top search result,
b. save that in the correct imdb directlink/weblink format and then
c. use imdb to download the rest of the data for that movie as does the IMDB(complete) script?

and

2. If someone finds the idea interesting enough to try? I admit hoping that replacing the IMDB (complete) search portion with a google search portion is easy and a GoogleIDMB script is a few minutes work for one of you. :)

Thanks for any education and or awesomeness!
3   L A T E S T    R E P L I E S    (Newest First)
davep Posted - 01 Oct 2021 : 05:03:16
Thank you. I'll try to figure out where to fit it in in a script when I have a chance.

Having it show the google info/poster/title and a confirmation makes sense.
JDommi Posted - 01 Oct 2021 : 00:47:21
Well, I think that there really can be problems with a wrong movie. But in general (if you always want to get the very first google result) you have to use something like this:
#RIGHTPAGEFOUND#
	#GETMOVIEVAR#=#16#=#MOVIE#
	#GETMOVIEVAR#=#23#=#YEARVALUE#
	#STRING#=#16#=#16#+#23#
	#STRING#=#13#=https://www.google.com/search?q=imdb+#16#&oq=imdb+#16#&aqs=chrome..69i57j69i64.29248j0j4&sourceid=chrome&ie=UTF-8
	#OPENNEWWEB#=#13#
	#STARTREADWEB#
	#FINDLINE#=<a href="https://www.imdb.com/title/tt#11#
	#FIND#="#11#
	#FIND#=/"#12#
	#TAKEWORD#=#13#,#11#,#12#
	#SEARCHREPLACEVAR#=https://www.imdb.com/|https://www.imdb.com//#13##01#
	#STRING#=#13#=#13#/
	#TAKEDIRECTLINK#=#13#
	#CONDITIONRIGHTPAGE# #00#==#00#
#ENDRIGHTPAGEFOUND#

It's just a quick suggestion without any testing!
davep Posted - 30 Sep 2021 : 18:52:35
I did 10 searches, with a few restarts of the web browser and the portion I find that's consistent for the IMDB link is the div class which is consistently "yuRUbf" if that helps...

<div class="yuRUbf"><a href="https://www.imdb.com/title/tt0031381/reviews" data-ved="2ahUKEwiI2dzak6fzAhWVt54KHSUzDuIQFnoECBgQAw" ping="/url?sa=t&source=web&rct=j&url=https://www.imdb.com/title/tt0031381/reviews&ved=2ahUKEwiI2dzak6fzAhWVt54KHSUzDuIQFnoECBgQAw"><br>

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.08 sec. Powered By: Snitz Forums 2000 Version 3.4.07