Giter Club home page Giter Club logo

co-regulations-gov's Introduction

co-regulations-gov

Installation

Download code and install dependencies

$ git clone [email protected]:coforma/co-regulations-gov.git
$ cd co-regulations-gov
$ yarn install

API Key & Environment Variables

  1. Go to https://open.gsa.gov/api/regulationsgov/ and request an API KEY. The API KEY should arrive by email within a few minutes.

  2. In ./workspaces/api make a copy of .env-example as .env and add your API KEY.

  3. In ./workspaces/ui, make a copy of .env-example as .env

Web Application Usage

You'll need the parent Document ID which may be obtained by navigating to that particular Document on regulations.gov.

Then, in the project root, run:

$ yarn start

You can now use the interface at: http://localhost:3000/

Try NHTSA-2021-0001 to test.

CLI

Running the following command in the project root:

$  yarn cli --documentId={DOCUMENT_ID}

Will generate results to output/output-{DOCUMENT_ID}.csv & output-{DOCUMENT_ID}.json.

Limitations

Though the script does account for rate limits, it doesn't do so exhaustively. The API's current rate limit is 500 per hour. Consequently, if there are over ~475 comments, it will likely begin to fail at some point.

Feedback

We welcome any/all feedback/comments, including the creation of Issues and/or Pull requests to this repository.

Please direct any non-code feedback to: https://coforma.io/connect/

co-regulations-gov's People

Contributors

scottymeyers avatar infinityplusone avatar dependabot[bot] avatar jaredcunha avatar

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.