<commit_before>### Get Data on Journalists

Scrape data on journalists from [Presspass](http://www.presspass.me/) and [MuckRack](http://muckrack.com/). 

Both scripts take a csv with column carrying twitter usernames labeled 'twitter.username.' (See [sample data](sample_input.csv).)

#### Running the Scripts

##### Prerequisites
	- Python 3.x
	- BeautifulSoup 4
	
#### Muckrack

1. Scrape data to file:

    <pre> python scrape_muckrack.py input_file </pre>
    
    HTML files will be saved to `./muckrack`

2. Parse and extract information from file:

    <pre> python extract_muckrack.py input_file</pre>

    Output CSV file will be saved as `muckrack-out.csv`


#### PressPass

1. Scrape data to file:

   <pre> python scrape_presspass.py input_file </pre>

    HTML files will be saved to  `./presspass`

2. Parse and extract information from file:

    <pre>python extract_presspass.py input_file </pre>

    Output CSV file will be saved as `presspass-out.csv`

#### License

Scripts are released under the [MIT License](License.md).<commit_msg>Replaced link to file with hyperlink to url<commit_after>### Get Data on Journalists

Scrape data on journalists from [Presspass](http://www.presspass.me/) and [MuckRack](http://muckrack.com/). 

Both scripts take a csv with column carrying twitter usernames labeled 'twitter.username.' (See [sample data](sample_input.csv).)

#### Running the Scripts

##### Prerequisites
	- Python 3.x
	- BeautifulSoup 4
	
#### Muckrack

1. Scrape data to file:

    <pre> python scrape_muckrack.py input_file </pre>
    
    HTML files will be saved to `./muckrack`

2. Parse and extract information from file:

    <pre> python extract_muckrack.py input_file</pre>

    Output CSV file will be saved as `muckrack-out.csv`


#### PressPass

1. Scrape data to file:

   <pre> python scrape_presspass.py input_file </pre>

    HTML files will be saved to  `./presspass`

2. Parse and extract information from file:

    <pre>python extract_presspass.py input_file </pre>

    Output CSV file will be saved as `presspass-out.csv`

#### License

Scripts are released under the [MIT License](https://opensource.org/licenses/MIT).
{'fraction_non_alphanumeric': 0.10946882217090069, 'fraction_numerical': 0.005542725173210162, 'mean_word_length': 3.708695652173913, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '3647099', 'n_tokens_mistral': 722, 'n_tokens_neox': 660, 'n_words': 242}