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: , , , , , , , , , ,

Software RAID type perl script

Posted on August 18th, 2009 by hamstar

So I have had a problem whereby I have 1.2TB of hard drive space on my server split across 5 drives. I am constantly going to the movies folder in this drive, then the movies folder in that drive, trying to check that I didn’t accidentally leave any pornos lying around.

So I made a script to display multiple folders of the same name accross drives in their own folder under /home/shared.

Read more »

Tags: , , ,

Batch converting Works (WPS) to Word (DOC)

Posted on September 20th, 2008 by hamstar

My friends mum needed a bunch of works files to work on her PC, but I could so not be bothered searching around for a works install disc, plus the converter from the Microsoft site wasn’t working.

So I took the documents to work where I knew the converter was working but there was still like over 100 documents and I didn’t want to open and save each one.

Luckily I found this page (can’t believe I’m linking to an MS site) which had a macro to use to convert a whole bunch of WPS’s to DOC’s.

I’ll re-post it here incase that other page disappears (also I made an adjustment so it works):
Read more »

Tags: , ,