Git Product home page Git Product logo

jailcrawl's Introduction

Docker

The Jailcrawl runs in a docker container. To run this, you first need to install docker. Then, follow the steps below:

  1. Create a file conf.env in your project root directory. Define 2 variables like:
BUCKET=jailcrawlsample
FAILURE_SNS_TOPIC=arn:aws:sns:us-east-1:153598194566:jailcrawl_errors

The BUCKET variable denotes the Amazon s3 bucket where the documents will be stored. The FAILURE_SNS_TOPIC variable is the Amazon Simple Notification Service "Topic" where error messages will be emailed.

  1. In a file called credentials in your project root, put the following, using your AWS credentials:
[default]
aws_access_key_id=AKXXXXX
aws_secret_access_key=dxsQXXXXXX
  1. Build the docker container:
docker build -t jailcrawl .
  1. Run the container. There are two modes to run. To run a single file, do run_one with a pointer to the specific file you'd like to run:
docker run -i -t  jailcrawl run_one ./Arkansas_marion.py

To run all files, do:

docker run -i -t  jailcrawl run_all

Code format

Common files and functions are in jailcrawl/common.py. These include utilities for saving to S3, logging to AWS CloudWatch and persisting errors.

Working Scrapers

All working scrapers in the project directory ./working_scrapers/ are deployed and will be run. For instance, you can run a scraper at ./working_scrapers/Arkansas_greene.py by running docker run -i -t test run_one ./Arkansas_marion.py. Scrapers that are not working are in the ./to_fix/ directory.

jailcrawl's People

Contributors

jborowitz avatar davidmertenjones avatar

Stargazers

 avatar

Watchers

 avatar  avatar Matthew Gomies avatar

Forkers

matthewgomies

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.