Git Product home page Git Product logo

uptodate's Introduction

uptodate

To run this code:

  1. Download this repository
  2. Insert your UChicago CNET ID and PASSWORD in "scrape.py" Edit the path to the location of your chromedriver. (You should download chromedriver from here https://sites.google.com/a/chromium.org/chromedriver/)
  3. Adjust "output_generic_names.txt" to include only the generics you are mining data for (Including all 480+ will take a long time)
  4. Run the command "python scrape.py" from within your downloaded repository, please pip install any dependencies (i.e. Selenium)
  5. The output will be written to "requested_data.csv"

This code was is meant to be run with Python 2 and Google Chrome.

Process:

The Linux OS was used to convert the pdf of Authorized Generics to "ag.txt"

get_generic_names.py converts "ag.txt" into "output_generic_names.txt"

scrape.py uses "output_generic_names.txt" as input to write the authorized generics' chemical names and indications to "requested_data.csv"

Because this was done in increments rather than all at once, the data is actually in "authorized_generics_data.csv" rather than "requested_data.csv"

"singlescrape.py" scrapes the data for a single authorized generic and prints it to the terminal. Used primarily for testing.

uptodate's People

Contributors

aditdamodaran avatar

Stargazers

mavs avatar

Watchers

James Cloos avatar  avatar

Forkers

sayedkamal2016

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.