Login
Forgot Password?

OR

Login with Google Login with Twitter Login with Facebook
  • Join
  • Profiles
  • Groups
  • SuicideGirls
  • Photos
  • Videos
  • Shop
Vital Stats

rook

Australia

Member Since 2004

Followers 87 Following 97

  • Everything
  • Photos
  • Video
  • Blogs
  • Groups
  • From Others

Sunday Jan 09, 2011

Jan 8, 2011
1
  • Facebook
  • Tweet
  • Email
For any Linux/Unix command-line commandos out there who may want to save their SuicideGirls blogs for posterity; the following command will scrape your pages and give you a text file of your content that you can then clean up and do with what you will.

curl -s "http://suicidegirls.com/members/username/blog/page[x-y]/" | sed -n '/timestamp/,/blogContentEdit/p' | html2text > path/to/save/filename



Where: username is your SG user name (obviously); x is the latest page of your blog (1); and y is the last page of your blog (mine was 50).

So the actual command I used, as an example, was:

curl -s "http://suicidegirls.com/members/Rook/blog/page[1-50]/" | sed -n '/timestamp/,/blogContentEdit/p' | html2text > /home/rook/Documents/SG_Blog.txt



Some caveats, however:

1 - You need to have curl and html2text installed on your system. Without curl you won't be able to scrape the pages. Without html2text you'll get an almost unreadable mess of html mark-up (I guess you could save that to a html file then open it in a browser and manually scrape it).

2 - Your blog needs to be public (although you may be able to get around that with curl's username and password switches. I don't know, I didn't try it).

3 - The output file will need a little manual clean-up, unless you like spending as much time fine-tuning a sed or awk command as it would take to do it the old fashioned way.

4 - This command does not grab the comments on your posts. You'll get a count of comments for each post, but there's no way to expand every post to expose your comments' source for the command to scrape. Sorry about that.

5 - If anyone knows a better/cleaner way of doing this, I'd love to hear from you!

6 - For you people in the iCult; you could probably get this work on your shiny new Macbook with a little tinkering to get the required programs in place.


SPOILERS! (Click to view)
Jesus H. Christ, I'm a nerd! It's amazing I've ever been laid.


VIEW 5 of 5 COMMENTS
pooky56:
Oh that is good. I do wish I was that nerdy. Might have to work on it..
Jan 29, 2011
conjure:
Ehhhhhhhhhh your blogs never make any sense (I never really give them a chance, granted, BUT it's because they always start with something that makes me completely lose concentration.) Glad to see that not much has changed around here wink
Feb 2, 2011

More Blogs

  • 03.06.10
    14

    Saturday Mar 06, 2010

    I'm coming to the realisation that, with the government's ever increa…
  • 02.01.10
    2

    Tuesday Feb 02, 2010

    For those of you who haven't yet noticed, my mini bar sentence (the o…
  • 01.05.10
    7

    Tuesday Jan 05, 2010

    In the future I see, life moves so quickly that anyone over the age o…
  • 01.02.10
    2

    Sunday Jan 03, 2010

    "I plan to ripen into an old rake. My pastimes will consist of gettin…
  • 12.19.09
    2

    Saturday Dec 19, 2009

    Since I last updated I've: Graduated uni. Nearly quit work because…
  • 12.03.09
    4

    Friday Dec 04, 2009

    She seems cool. Which isn't cool. Because I'm not interested in bein…
  • 11.29.09
    7

    Monday Nov 30, 2009

    So I finally got the results for my final year at uni back. This mean…
  • 11.28.09
    5

    Saturday Nov 28, 2009

    Read More
  • 11.27.09
    1

    Saturday Nov 28, 2009

    Read More
  • 11.20.09
    6

    Saturday Nov 21, 2009

    I'm long overdue for a rant. So here it is, a fresh and steaming plat…

We at SuicideGirls have been celebrating alternative pin-up girls for:

23
years
10
months
18
days
  • 5,509,826 fans
  • 41,393 fans
  • 10,327,617 followers
  • 4,599 SuicideGirls
  • 1,114,448 followers
  • 14,944,928 photos
  • 321,315 followers
  • 61,453,983 comments
  • Join
  • Profiles
  • Groups
  • Photos
  • Videos
  • Shop
  • Help
  • About
  • Press
  • LIVE

Legal/Tos | DMCA | Privacy Policy | 18 U.S.C. 2257 Record-Keeping Requirements Compliance Statement | Contact Us | Vendo Payment Support
©SuicideGirls 2001-2025

Press enter to search
Fast Hi-res

Click here to join & see it all...

Crop your photo