athiya26 / SMARE

Senior Design Repository for the Statefarm Automotive Fraud Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Statefarm SMARE

Senior Design Repository for the Statefarm Automotive Fraud Project

Database Access

Make a copy of the .env.example file and make the following changes.

  1. remove .example from the extension

  2. Paste the username and password provided in MongoDB Atlas (if you should have access but do not, please contact @waseem-polus)

  3. 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

Run Scrapers locally

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

About

Senior Design Repository for the Statefarm Automotive Fraud Project

License:MIT License


Languages

Language:TypeScript 88.3%Language:Python 6.3%Language:JavaScript 2.1%Language:CSS 1.9%Language:Dockerfile 1.5%