BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Scripts
 A script to use google to get the IMDB link
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

davep
Starting Member

Canada
18 Posts

Posted - 30 Sep 2021 :  18:38:32  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

davep
Starting Member

Canada
18 Posts

Posted - 30 Sep 2021 :  18:52:35  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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>
Go to Top of Page

JDommi
Administrator

Germany
4650 Posts

Posted - 01 Oct 2021 :  00:47:21  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

davep
Starting Member

Canada
18 Posts

Posted - 01 Oct 2021 :  05:03:16  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
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 0.11 sec. Powered By: Snitz Forums 2000 Version 3.4.07