<commit_before>hscic_apiomatic
===============

Scrapes HSCIC website and builds a list of JSON objects for each dataset or
key indicator found therein.

Requires beautifulsoup and requests::

    $ pip install -r requirements.txt

Usage
-----

To scrape the indicator portal::

    $ python grab_indicators.py

To scrape the current dataset catalogue::

    $ python grab_datasets.py

The results are two JSON files: indicators.json and datasets.json.

If anything goes wrong check out the indicator.log / datasets.log files. :-)<commit_msg>Added missing dependancy to the README<commit_after>hscic_apiomatic
===============

Scrapes HSCIC website and builds a list of JSON objects for each dataset or
key indicator found therein.

Requires beautifulsoup, requests and html2text::

    $ pip install -r requirements.txt

Usage
-----

To scrape the indicator portal::

    $ python grab_indicators.py

To scrape the current dataset catalogue::

    $ python grab_datasets.py

The results are two JSON files: indicators.json and datasets.json.

If anything goes wrong check out the indicator.log / datasets.log files. :-)
{'fraction_non_alphanumeric': 0.08660714285714285, 'fraction_numerical': 0.0008928571428571428, 'mean_word_length': 4.026905829596412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6215943', 'n_tokens_mistral': 316, 'n_tokens_neox': 293, 'n_words': 130}