Interface Blitzmax with IMDB
BlitzMax Forums/BlitzMax Programming/Interface Blitzmax with IMDB
| ||
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 |
| ||
Probably just want use stream tools as I'm assuming it's ofer http and writing your own client would just be redundant. |
| ||
Search the code archives for 'http get' |
| ||
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) |
| ||
If imdb provides a webservice (REST API perhaps?) you could use htbaapub.rest. It's on my GitHub profile. |
| ||
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) |
| ||
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. |
| ||
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. |
| ||
http://www.imdb.com/help/show_leaf?usedatasoftware Condition 2 is probably of most interest to you :-) |
| ||
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. |