I am trying to get the hrefs from url, put into a list and print the one of the list out. for example the third, but all I got is the third character of every href.
import urllib
from bs4 import BeautifulSoup
newlist=[]
page = urllib.urlopen("http://python-data.drchuck.net/known_by_Kamran.html").read()
soup = BeautifulSoup(page, "html.parser")
tags = soup.find_all('a')
for tag in tags:
newlist=tag.get("href", None)
print newlist[2]
the output is : t t t t t t t...