Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@


import urllib
from BeautifulSoup import *
from urllib.request import urlopen
from bs4 import BeautifulSoup

sample_url = "http://python-data.dr-chuck.net/comments_42.html"
data_url = "http://python-data.dr-chuck.net/comments_277464.html"

#Getting the html information and parsing it with BeautifulSoup
html = urllib.urlopen(data_url).read()
html = urlopen(data_url).read()
soup = BeautifulSoup(html)

#Getting a list with the "span" tags
Expand Down