Skip to content

dod-advana/gamechanger-crawlers

Repository files navigation

Mission Vision Icons

Introduction

Over 15 thousand documents govern how the Department of Defense (DoD) operates. The documents exist in different repositories, often exist on different networks, are discoverable to different communities, are updated independently, and evolve rapidly. No single ability has ever existed that would enable navigation of the vast universe of governing requirements and guidance documents, leaving the Department unable to make evidence-based, data-driven decisions. Today GAMECHANGER offers a scalable solution with an authoritative corpus comprising a single trusted repository of all statutory and policy driven requirements based on Artificial-Intelligence (AI) enabled technologies.

Mission Vision Icons

Vision

Fundamentally changing the way in which the DoD navigates its universe of requirements and makes decisions

Mission

GAMECHANGER aspires to be the Department’s trusted solution for evidence-based, data-driven decision-making across the universe of DoD requirements by:

  • Building the DoD’s authoritative corpus of requirements and policy to drive search, discovery, understanding, and analytic capabilities
  • Operationalizing cutting-edge technologies, algorithms, models and interfaces to automate and scale the solution
  • Fusing best practices from industry, academia, and government to advance innovation and research
  • Engaging the open-source community to build generalizable and replicable technology

License & Contributions

See LICENSE.md (including licensing intent - INTENT.md) and CONTRIBUTING.md

How to Setup Local Env for Development

The following should be done in a MacOS or Linux environment (including WSL on Windows)

  1. Install Google Chrome and ChromeDriver
  2. Install Miniconda or Anaconda (Miniconda is much smaller)
  3. Create a gamechanger crawlers python3.6 environment:
    conda create -n gc-crawlers python=3.6
  4. Clone the repo and change into that dir:
    git clone https://github.com/dod-advana/gamechanger-crawlers.git
    cd gamechanger-crawlers
  5. Activate the conda environment and install requirements:
    conda activate gc-crawlers
    pip install --upgrade pip setuptools wheel
    pip install -r ./docker/minimal-requirements.txt
  6. That's it.

Quickstart Guide: Running a Crawler

  1. Follow the environment setup guide above if you have not already
  2. Change to the gamechanger crawlers directory and export the repository path to the PYTHONPATH environment variable:
    cd /path/to/gamechanger-crawlers
    export PYTHONPATH="$(pwd)"
  3. Create an empty directory for the crawler file outputs:
    CRAWLER_DATA_ROOT=/path/to/download/location
    mkdir -p "$CRAWLER_DATA_ROOT"
  4. Create an empty previous manifest file:
    touch "$CRAWLER_DATA_ROOT/prev-manifest.json"
  5. Run the desired crawler spider from the gamechanger-crawlers directory (in this example we will use the executive_orders_spider.py):
    scrapy runspider dataPipelines/gc_scrapy/gc_scrapy/spiders/executive_orders_spider.py \
      -a download_output_dir="$CRAWLER_DATA_ROOT" \
      -a previous_manifest_location="$CRAWLER_DATA_ROOT/prev-manifest.json" \
      -o "$CRAWLER_DATA_ROOT/output.json"
  6. After the crawler finishes running, you should have all files downloaded into the crawler output directory