Interface Blitzmax with IMDB

BlitzMax Forums/BlitzMax Programming/Interface Blitzmax with IMDB

Pineapple(Posted 2011) [#1]
I'd like to write a program that's able to fetch some data about a movie using its name and year. I'm having trouble figuring out what blitzmax networking commands I should be using for this.

Last edited 2011


ima747(Posted 2011) [#2]
Probably just want use stream tools as I'm assuming it's ofer http and writing your own client would just be redundant.


Who was John Galt?(Posted 2011) [#3]
Search the code archives for 'http get'


xlsior(Posted 2011) [#4]
myfile=OpenFile:TStream( "http::www.imdb.com/find?s=all&q=back+to+the+future")
While Not Eof(myfile)
	Print ReadLine(myfile)
Wend
CloseStream myfile


http:// is accessible as a stream -- you can use the normal openfile and readline and such.

When going to a website, just make sure to prefix it with http:: (and NOT the http:// that you would normally use in a webbrowser)


Htbaa(Posted 2011) [#5]
If imdb provides a webservice (REST API perhaps?) you could use htbaapub.rest. It's on my GitHub profile.


Brucey(Posted 2011) [#6]
They don't provide a web service, and "scraping" is bad bad...

You can, however, download their whole text-based database for free, and provide your own webservice, should you so wish
(there are others who do this)


Pineapple(Posted 2011) [#7]
So far my program is able to find and scan a search page for a movie's page and get the movie poster, rating, and summary of it. The only issue right now is that for some less specific titles the first link is often a TV series. I'm working on making it get past that.


Pineapple(Posted 2011) [#8]
So far my program is able to find and scan a search page for a movie's page and get the movie poster, rating, and summary of it. The only issue right now is that for some less specific titles the first link is often a TV series. I'm working on making it get past that.


Brucey(Posted 2011) [#9]
http://www.imdb.com/help/show_leaf?usedatasoftware

Condition 2 is probably of most interest to you :-)


Pineapple(Posted 2011) [#10]
I'm not trying to put together a database, and it's only for personal use. I have a bunch of movies on my drive and I'd like to be able to browse them with their posters as thumbnails and see some basic information about them. The purpose of this program is just to automatically gather this information and then save it locally.