CodeForAfrica-SCRAPERS / healthtools_ng

[morph] A scraper for the Nigeria HealthTools.


Healthtools Nigeria

This is a suite of healthtools for Code for Nigeria. It contains a scraper that acquires medicine brand names from http://rxnigeria.com/en/items. The scraper currently runs on morph.io.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

Clone the repo from Github by running $ git clone git@github.com:CodeForAfrica-SCRAPERS/healthtools_ng.git

Change directory into package $ cd healthtools_ng

Install the dependencies by running $ pip install requirements.txt

You can set the required environment variables like so $ export MORPH_AWS_ACCESS_KEY_ID= <aws_access_key_id> $ export MORPH_AWS_SECRET_KEY= <aws_secret_key>

You can now run the scrapers $ python scraper.py

Running the tests

Use nosetests to run tests (with stdout) like this: $ nosetests --nocapture

Contributors DavidLemayian RyanSept

Last run failed with status code 999.

Console output of last run

Please install the Morph Github App on CodeForAfrica-SCRAPERS so that Morph can access this repository on GitHub. Please go to https://github.com/apps/morph-io/installations/new/permissions?repository_ids%5B%5D=82308503&repository_ids%5B%5D=90606791&repository_ids%5B%5D=89219751&suggested_target_id=25844107 Why? See https://morph.io/documentation/github_app

Statistics

Average successful run time: less than a minute

Total run time: 1 day

Total cpu time used: 38 minutes

Total disk space used: 807 KB

History

  • Auto ran and failed .
  • Auto ran and failed .
  • Auto ran and failed .
  • Auto ran and failed .
  • Auto ran and failed .
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

healthtools_ng / scraper.py