<jupyter_start><jupyter_text>Scrape the web data with beautifulsoup<jupyter_code>from bs4 import BeautifulSoup
import urllib2
html = urllib2.urlopen('https://github.com/Stichting-MINIX-Research-Foundation/minix/issues/234')
soup = BeautifulSoup(html,'html.parser')
time = soup.find_all(name = 'div',attrs={'class':'timeline-comment-header clearfix'})
print type(time)
time[0]
a = time[0]
b = a.find_all(name ='h3',attrs = {'class':'timeline-comment-header-text f5 text-normal'})
b[0]
print type(b)
c = b[0]
d = c.find_all(name = 'a',attrs = {'class':'timestamp'})
d[0]
f = d[0]
date = f.find_all(name='relative-time',attrs ={'datetime':'2017-08-25T13:55:35Z'})
date[0]
date[0]
finial = date[0].text
print finial<jupyter_output>Aug 25, 2017
{'fraction_non_alphanumeric': 0.18267929634641408, 'fraction_numerical': 0.05006765899864682, 'mean_word_length': 6.956989247311828, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '101802', 'license': 'MIT', 'n_tokens_mistral': 320, 'n_tokens_neox': 297, 'n_words': 53, 'path': 'scrapedata.ipynb', 'repo_name': 'Yanranhuo/JupyterWorkflow', 'size': '739'}