- BeautifulSoup
- Queue
- Requests
- Set up python virtualenv
- Pull this repository by running the command
git clone https://github.com/Aadeshp/craig_scraper.git
- Change directories in the folder
- Run the command
pip install -r requirements.txt
- Run the command
python craig_scraper --update-region [REGION ABBREV. HERE] --update-search [SEARCH ABBREV. HERE]
- To add the keywords you want the script to search for, run the command
python craig_scraper --add-keyword [LIST OF KEYWORDS HERE (Separated By Spaces)]
- Run the script using the command
python craig_scraper
- The results output will be separated by keyword
- --update-search [SEARCH ABBREV. HERE]
- --update-region [REGION ABBREV. HERE]
- --add-keyword [LIST OF KEYWORDS HERE (Separated By Spaces)]
- --remove-keywords (This requires no arguments, but it will remove all keywords in the .json file)
python craig_scraper --update-region cnj --update-search jjj
python craig_scraper --add-keyword Java Python Ruby Bash C++
python craig_scraper
- -----OUTPUT-----