Hotfile link extractor

Posted on September 24th, 2009 by hamstar

A mate of mine needed a link extractor for his hotfile.com account so that he could drop a bunch of download page links in and get the premium links to the actual file back, all in a single page, or file. From that page or file he can load them into his download program. These are all legit links btw, no illegal shit.

Anyways I made a bot that has a form to start with where you dump your download urls. Then it goes to the hotfile site, logs in with the given user credentials, runs through each link that the bot was given, and extracts the premium download URL to the file. Then it either prints the links to the page OR it saves the links into a files.txt in the web folder and forces a download in the browser.

The manual way to do that is go to every hotfile.com download link, click on the download file button to start the download, and repeat for every download url you have. This you can throw 50 hotfile.com download links in the form, hit go and it will give you all the premium download links at once. It probably breaks the hotfile terms and services so you could put your account in jeopardy (not my fault) but I don’t use the script, I just solved a problem.

Here’s the code for it if anyone wants to use it. Would be cool if you let me know if it was useful as well :)
Read more »

Tags: , , , , , , , , , ,

KML creator class

Posted on September 22nd, 2009 by hamstar

Update: This is now available on github!!! Much better! Check it.


For my latest project I needed a script to create a KML file from a set of data so it could be loaded into Google Earth. So here is the class if anyone else wants to do the same thing.

Here’s an example of how to use it: Read more »

Tags: , , , , , ,

Box Office Data API

Posted on September 21st, 2009 by hamstar

Reading about the stink the MPAA and RIAA are kicking up about the whole P2P bittorrent thing got me thinking. I wonder if what they are saying is actually true. Are movie makers actually being ripped off by bittorrent?

I found this website called The Numbers which has a whole lot of box office data on it.

However no API. And I wanted an API that would tell me whether to feel guilty about downloading a particular movie.

So I made this: Box Office Data API

You just have to enter the movie name and year (in the url bar – no form yet) and it will tell you (if the data is available) the production costs, the gross revenue, and the net profit the movie makers made.

Here’s an example for the movie District 9 also if you look at Titanic they made over 1.5 billion bucks profit on that piece of shit movie!

The search code isn’t very smart though so it may return some dodgey results. Still beta but still useful.

Tags: , , , , , , , , , ,

Spiders

Posted on March 5th, 2009 by hamstar

Skinny introduced me to this spiders book from knowfree.net and I’ve been having wickid ideas ever since I read it.

Of course I’m talking about spiders in the programming sense. Robots and screen scrapers that go out onto the net and grab data and stuff into a database then you can do stuff with that data.

The things you can do with spiders is amazing. I’ve got a few cool ideas, like mixing band info from wikipedia with the google maps api and ripping the data from a site with a shitty design and putting it into your own little database.

But I won’t give away too much stuff cos someone might steal my ideas – I probably won’t have time to finish writing them anyway lol. I should write a guide to writing a spider soon though.

Hmmm.. fun. /geek

Tags: , ,