How to automatically search Craigslist and notify you of new postings for free!

So a good friend of mine introduced me to a curious problem that I helped him solve.  So there are a few bad commercial solutions to automatically search Craigslist for new postings and notify you in some fashion.

  • AdRavage works well enough, however the results they email out are often several hours old by the time it sends you the email (at least for the free version).
  • Ad Finder Pro which that code is horrible, and badly documented.  I tried getting it to run and got various php errors, and the php dependencies are not documented.  In the end all I got was a bunch of php errors and no emails.  The features leave a lot to be desired, such as no searching by price or by specific category.

So after failing at these various methods I dug into the problem and found a workable solution that is free.

Craigslist has had RSS feeds for a long time, and you can pull an RSS feed of nearly any category or search you can make on Criagslist.  Therefore all we need is a RSS feed reader that will notify you of changes to the RSS feed. So after a fairly short time I found RSS2Email which with the proper configuration can be easily used to accomplish this task.

  • I will assume you have a Ubuntu system/server setup and running
  • Install RSS2Email
sudo apt-get install rss2email
  • Copy example rss2email config file
cp /usr/share/doc/rss2email/examples/config.py ~/.rss2email/
  • Edit config.py file, change attributes like:
    1. DEFAULT_FROM
    2. SMTP_SEND
    3. {SMTP settings}
  • Then run the command to create a new feed database.
r2e new {email address}
    1. Note you can use your carriers’ email to text function to get these messages on your phone! Only suggested if you have a unlimited texting plan!
  • Now you can add a RSS feed URL to be monitored. Note the added quotes around the URL are required the & will throw off the bash command.  You can get the RSS url at the bottom right of any category or search results page on Craigslist.
r2e add "{RSS URL}"
  • Add the command to your crontab to run the rss2email on a regular basis
crontab -e
  • Add the following to your crontab file
*/5 * * * * r2e run

Note the first time this runs on a new feed it will send you a lot of email!  You can avoid this by running the following the first time you add a new URL

r2e run --no-send

Have fun, you can add as many RSS urls you want by running the add command from above.  Just be careful Craigslist may ban your IP if you hit their servers too often with too many searches.  I wouldn’t recommend going below a 5 minute cron interval.

Tags: , , , , , ,

This entry was posted on Sunday, May 6th, 2012 at 12:41 am and is filed under OSS, Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “How to automatically search Craigslist and notify you of new postings for free!”

eckelon March 14th, 2013 at 12:19 pm

Thank you! I was trying to configure rss2email in my ubuntu server since Google announced today that Reader will be turned off. All I needed was to set up cron, and now it seems it’s working 🙂

Regards!

Your comment is awaiting moderation.

RaymondSpuct September 8th, 2022 at 8:40 pm

Впервые с начала спецоперации в украинский порт пришло иностранное торговое судно под погрузку. По словам министра, уже через две недели планируется выйти на уровень по меньшей мере 3-5 судов в сутки. Наша функция – выход на месячный объем перевалки в портах Большой Одессы в 3 млн тонн сельскохозяйственной продукции. По его словам, на симпозиуме в Сочи президенты перетерали поставки российского газа в Турцию. В больнице актрисе поведали о работе медицинского центра во время военного положения и тиражировали подарки от малышей. Благодаря этому мир еще крепче будет слышать, знать и понимать правду о том, что выходит в нашей стране.

Your comment is awaiting moderation.

RaymondSpuct April 30th, 2023 at 11:47 am

Healy company presents novelty in the world of medical care – Healy wave device, which treats diseases at all levels – energy, mental and physical. Based on the fundamentals of quantum physics, using leading knowledge and developments in the field of psychology and physiotherapy. Portable home doctor who painlessly successfully treats and counteracts onset of illnesses – most diverse spectrum, more than 5 thousand, and index is growing. Partial list of treatment softwares – digital su-Jock, digital homeopathy, digital herbal medicine, digital flower therapy, digital health nutrition and diet, i-ging, Schuessler salts, Alaskan gem elixirs, Australian bush flowers, macrobiotics, manual therapy elements, to in -depth meditation and relaxation programs.

Discover more
https://t.me/quantummedicinehealy/12

Your comment is awaiting moderation.

RaymondSpuct December 24th, 2023 at 2:51 pm

Warm Bitcoin on chill snow. Christmas crypto request with great benefits.
Coddle yourself to something delicious before New Year!

Your comment is awaiting moderation.

RaymondSpuct January 23rd, 2024 at 9:22 am

Auto cloud Bitcoin mining for your pocketbook. Safe and reliable.
Discover it right now!

Leave a Reply