-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.ini
23 lines (22 loc) · 1.7 KB
/
config.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[CLscraper]
# Craiglist scraper configuration file. All values must be present and configured.
# Email server settings
# Make sure you set up gmail to work with "less secure apps" here: https://myaccount.google.com/lesssecureapps?pli=1
# You can also make a new gmail account to do this if your main one has two factor authentification or you want stronger security
smtp_server = smtp.gmail.com:587
smtp_username = [email protected]
smtp_password = p@assW0rd
# Email address that the email is recieved from
fromaddr = [email protected]
# List of addresses to send the links to. Must be valid JSON string
toaddrs = ["[email protected]","[email protected]"]
# List of search URLs, can do an arbitrarily large number of queries so long as they fit in a python list
# Go to craigslist and do the search you want, then copy the URL string into the list, for instance
# https://sandiego.craigslist.org/search/apa?query=pacific+beach&sort=date&hasPic=1&max_price=3500&availabilityMode=0&sale_date=all+dates
# would include a search for rentals in Pacific Beach with at least 4 bedrooms, posted with a picture, and charging under $3500 rent
# make sure you sort the page by newest so that sort=date shows up in the URL. The default page count is 120, so as long as there are not
# 120 new posts within SLEEPTIME you should still catch them all. But generally, this means it's better to use many specific searches than one broad search.
# Must be valid JSON string
urls = ["URL1","URL2","etc."]
# Number of minutes to wait between checking the search pages. If this number is too low Craigslist will ban you IP. As of May 2020, between 1 and 10 minutes seems to work.
sleeptime = [1,10]