Instructables
This instructable contains instructions on how to set up and use a Perl script I wrote for Steveastrouk to allow him to download all of the messages in his Instructables inbox and open them in Thunderbird or any email client that can handle .eml files.

Once you've used the script you'll be able to refer to them while offline and organise your messages by date, sender, title and shoe size and never again worry again that Robot will lose your messages!

While I've tried to make it as easy to use as possible, this does require some installation and setting up of Perl and some modules. It's not really easy, but I've tried to explain how to use it as best I can and a relatively competent computer user should be able to figure out any problems. If you get it right first time it should take you no longer than 10 minutes to set up, and a second or two per message to download them.

The script uses the modules LWP and Mechanize to log in to your instructables account and then fetch web pages and then Perl regular expressions to separate out the useful content. Even if you don't want to download your entire inbox it might prove useful to see how to use Perl to scrape web pages for information.



 
Remove these adsRemove these ads by Signing Up
Can we make it in LWP?
Jayefuu (author)  Chankey Pathak2 years ago
Oooof. It's been a while since I wrote it. IIRC it uses LWP _AND_ Mechanize. There was a problem with logging in that I couldn't use JUST LWP for it.
Okay :) I am new in Perl. Completed reading "Learning Perl". Now want to learn something related to web development. Your tool for example is exactly what I like to make. Can you guide me what should I learn next in Perl?
Jayefuu (author)  Chankey Pathak2 years ago
Find a fairly simple web page and make sure you can use Perl to grab the source code. Then use regex to pick some information out of it.

Half the battle is first understanding the web page, Instructables is more complicated than a lot of sites as it uses so my javascript.

So I'd suggest you find your favourite site, use LWP to grab the html then regular expressions to parse out an interesting detail. Then progress to forms or grabbing and processing/saving pictures.
Okay, thanks a lot :)
Do you recommend any source to learn Perl?
Jayefuu (author)  Chankey Pathak2 years ago
Nah, I just think of a problem I want to solve with Perl then start thinking about how I'll do it, then if I get stuck I google for a more specific tutorial.
Okay, thanks for guiding, have a good day! :)
sweeet
Jayefuu (author)  iminthebathroom3 years ago
You tried it? It was written quite a long time ago now and if the Instructables HTML has changed since then it *may* not still work.
I will tonight when I get home, I'll see what patches may need to be made and report back
Very cool project in deed. Thanks
Jayefuu (author)  siliconekeypad3 years ago
Thanks, did you get it to work?

J
possum8883 years ago
Awesome! I'd be interested to see how much load this put's on the Instructables servers.
kelseymh3 years ago
Tsk, tsk, tsk. Half your steps have no pictures, and you still got Featured! My, how standards are slipping among today's youth...
Jayefuu (author)  kelseymh3 years ago
Shockin' huh! They should really have a word with whoever featured it ;)
That guy's new. We'll have a talk with him.
I reckon he featured it because the first picture was that excellent, it made up for the rest of the steps.
Hehe.
kelseymh3 years ago
Very cool project; nice implementation! Rated...
NachoMahma3 years ago
. I just backed-up 321 PMs. Thanks!
Wa Hey ! Works for me.
Thanks
Steve