A package for renewing and reposting posts on craigslist.com.
Project description
craigslist-reposter
Simple automation of craigslist listing renewal and reposting:
- Selenium to access craigslist.com, IMAPClient package to authenticate login
- User information is imported from environment variables
- Pings an optional Discord webhook when reposts are completed
Installation
git clone https://github.com/PorkyC/craigslist-reposter.git
cd craigslist-reposter
pip install -r requirements.txt
Usage
- Set environment variables (e.g. for Windows)
SETX CL_USER craigslist_login@gmail.com
SETX CL_PASS craigslistpassword123
SETX CL_EMAIL_PASS gmailpassword123
# Optional: if using a webhook:
SETX DISCORD_WEBHOOK discord.com/webhook-address
- Change CLICK_TYPE in craigslist.py depending on whether script is running on Windows or Mac
# CLICK_TYPE configures which key is used to open the post in a new tab
CLICK_TYPE = Keys.COMMAND # Use this if you are on a Mac
CLICK_TYPE = Keys.CONTROL # Use this if you are on a PC
- Set maximum days a post can be active before reposting, and imap address in reposter.py
# MAX_POST_DAYS configures the maximum number of days after posting before reposting
MAX_POST_DAYS = 11
# IMAP_SERVER for email provider, default for gmail
IMAP_SERVER = 'imap.gmail.com'
- Run reposter.py (can also be scheduled, e.g. Launchd on MacOS)
TODO:
- Improve repost process so that no additional configuration needed between MacOS and Windows
- Save and reload Selenium browser session to reduce new logins and verifications
- Filter verification emails by subject
Project details
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_reposter-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8af347e3fe3a62168881e24866d29303b1be808c1b31528468980799c459475 |
|
MD5 | a755db5065c8f5e31d38fea8b6500832 |
|
BLAKE2b-256 | af3783a824f0cbd33b20222b834333fa1a02de74542c0cbac3e8c5fbdc303b36 |
Close
Hashes for craigslist_reposter-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb396a6d158bea43cec55426b27c99b3076ef889f57472a6d03085098a9ef6da |
|
MD5 | 090b4ee39feda60eb66ab86fbcf29d2f |
|
BLAKE2b-256 | b635111435ad325765fabff6ff9a6e2183d4d51713021f1d5e4080f012a1f284 |