Senior Design Repository for the Statefarm Automotive Fraud Project
Make a copy of the .env.example
file and make the following changes.
-
remove
.example
from the extension -
Paste the username and password provided in MongoDB Atlas (if you should have access but do not, please contact @waseem-polus)
-
Paste the connection URL provided provided in MongoDB Atlas. Include the password and username fields using
${VARIABLE}
syntax to embed the value of the variable
Prerequisites
- python3
- pipenv
Installing dependencies
Navigate to scrapers/
and open the virtual environment using
pipenv shell
Then install dependencies using
pipenv install
Scraper Usage
To create build a Docker Image use
pipenv run build
to run a docker container "smarecontainer" use
pipenv run cont
then
# Scrape Craigsist homepage
pipenv run craigslist
# Scrape Facebook Marketplace homepage
pipenv run facebook