<commit_before>import requests, lxml
from bs4 import BeautifulSoup as beau

r = requests.get('http://portaldalinguaportuguesa.org/index.php?action=fonetica&act=list&region=lbx')
soup = beau(r.text, 'lxml')
s_rollovertable = beau(str(soup.find(id='rollovertable')), 'lxml')

for i, word in enumerate(s_rollovertable.find_all('tr')):
    print('Word no. ' + str(i))
    print(word.prettify())<commit_msg>Second commit<commit_after>import requests, lxml
from bs4 import BeautifulSoup as beau

url = 'http://portaldalinguaportuguesa.org/index.php?action=fonetica&act=list&region=lbx'
parser = 'lxml'

r = requests.get(url)
soup = beau(r.text, parser)

soup_wordtable = beau(str(soup.find(id='rollovertable')), parser)

for i, word in enumerate(soup_wordtable.find_all('tr')[1:]):
    word_dict = {}

    for content in word.contents[1:]:
        print(content.prettify())
{'fraction_non_alphanumeric': 0.15340253748558247, 'fraction_numerical': 0.00461361014994233, 'mean_word_length': 6.056910569105691, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '6145053', 'n_tokens_mistral': 334, 'n_tokens_neox': 325, 'n_words': 58}