<commit_before>'''
Created on Mar 27, 2016

@author: Noe
'''
import requests
import bs4

session = requests.session()

req = session.get('http://stackoverflow.com/questions/10807081/script-to-extract-data-from-web-page')

doc = bs4.BeautifulSoup(req.content)

print doc.findAll('a', { "class" : "gp-share" })

if __name__ == '__main__':
    pass<commit_msg>working version<commit_after>'''
Created on Mar 27, 2016

@author: Noe
'''
import requests
import bs4

session = requests.session()

req = session.get('http://stackoverflow.com/questions/10807081/script-to-extract-data-from-web-page')

doc = bs4.BeautifulSoup(req.content,'lxml')

print doc.findAll('a', { "class" : "js-gps-track" })

if __name__ == '__main__':
    pass
{'fraction_non_alphanumeric': 0.16781292984869325, 'fraction_numerical': 0.04401650618982118, 'mean_word_length': 4.824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '3468716', 'n_tokens_mistral': 292, 'n_tokens_neox': 261, 'n_words': 52}