You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importurllibfrombs4importBeautifulSoup#from BeautifulSoup import *url=raw_input('Enter - ')
html=urllib.urlopen(url).read()
soup=BeautifulSoup(html)
# Retrieve a list of the anchor tags# Each tag is like a dictionary of HTML attributestags=soup('a')
fortagintags:
printtag.get('href', None)
The text was updated successfully, but these errors were encountered:
fairypp
changed the title
Python Data Structures_Coursera_Notes_Ch13_WebServices_BeautifulSoup
Using Python to Access Web Data_Coursera_Notes_Ch13_WebServices_BeautifulSoup
Jul 18, 2016
The text was updated successfully, but these errors were encountered: