Jump to content
Sign in to follow this  

Grab text from Craigslist

Recommended Posts

Hello All,

Some time ago I wrote (actually grabbed 98% from this forum) a handy routine for myself which would grab Craigslist entries by keyword and save them. Apparently, Craigslist changed the way they wrote the html. I used to be able to grab the description, cost and location of the item just by saving .innertext.

Today's html looks like:

<p class="row">

<span class="ih">&nbsp;</span>

<a href="http://lasvegas.craigslist.org/gms/1880796637.html">Everything Imaginable</a> -

$5<font size="-1"> (Henderson/Green Valley Ranch Casino Area)</font>

<span class="p"> pic</span>

<br class="c">


By saving .innertext, I only get "Everything Imaginable".

I also want to save the price "$5", the location "(Henderson/Green Valley Ranch Casino Area)" and

the PictureIndicator "pic".

How do I refer to and grab these three fields?

Thanks for your help,


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...