Code Monkey home page Code Monkey logo

craigslist-poll's Introduction

Craigslist poller

Python app that polls craigslist on a url or filter and emails any new listings to an email specified.

The poll interval is set to 15 minutes because that is the interval Craigslist uses to push up posts to the rss api.

How to use

  1. Have python 3
  2. Clone the repo
  3. Set the following environment variables:
    • CPOLL_FROMEMAIL=<email to send from>
    • CPOLL_PW=<password for email to send from>
    • CPOLL_TOEMAIL=<email to send to>
  4. Get desired url by searching craigslist for what you want (example: https://phoenix.craigslist.org/search/msg?min_price=100&max_price=200)
  5. Run main.py from terminal with a -url argument set to the url in quotes

python3 main.py -url "https://phoenix.craigslist.org/search/msg?min_price=100&max_price=200"

Notes

  • If the email isn't a gmail, edit line 90 of main.py to connect to the correct port
  • You may have to allow less secure apps to access your email

craigslist-poll's People

Contributors

alkerway avatar

Watchers

 avatar  avatar

Forkers

ianmatheson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.