Emails a list of urls to new posts found on craigslist page.
Project description
Craigslist Watcher
Description
Emails a list of urls to new posts found on craigslist page.
Installation
pip install craigslist-watcher
or
pipenv install craigslist-watcher
Arguments
- url - The craigslist page to watch
- email-to-addr/email_to_addr - The email to send the new posts to.
- email-from-addr/email_from_addr - The email to send the new posts from.
- email-password/email_password - The password for the email-from account.
- email-host/email_host - The ip/hostname of the email provider.
- email-port/email_port - The port to send the smtp message over.
- email-subject/email_subject - The subject of the emails that are sent.
- watch-interval/watch_interval - The number of seconds between each watch.
- watch-duration/watch_duration - The number of minutes to do all watching for.
Usage
>> craigslist_watcher --url "https://southcoast.craigslist.org/search/jjj?query=&excats=&cat_id=11&userid=&postedToday=1&search_distance=&postal=" --email-to-addr "recipient_email_here@gmail.com" --email-from-addr "sending_email_here@gmail.com" --email-password "123456789" --email-host "smtp.gmail.com" --email-port 587 --email-subject "New craigslist posts" --watch-duration 1 --watch-interval 30
from craigslist_watcher import Watcher
watcher = Watcher(
url="https://southcoast.craigslist.org/search/jjj?query=&excats=&cat_id=11&userid=&postedToday=1&search_distance=&postal=",
email_to_addr="recipient_email_here@gmail.com",
email_from_addr="sending_email_here@gmail.com",
email_password="123456789",
email_host="smtp.gmail.com",
email_port=587,
email_subject="New craigslist posts",
watch_duration=1,
watch_interval=30
)
watcher.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for craigslist_watcher-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 032ca1ff3eae928d3b49bd0ce74dc0ff6fbf7040b2b320daf1b5b054444b0214 |
|
MD5 | bf3d572d145eae4d3e4add11e22eca22 |
|
BLAKE2b-256 | fd0ec188aad40636a72418e16df8b5b9d0a191eefc0e72aa410b1943427798b1 |