I'm a little new to web parsing in python. I am using beautiful soup. I would like to create a list by parsing strings from a webpage. I've looked around and can't seem to find the right answer. Doe anyone know how to create a list of strings from a web page? Any help is appreciated.
My code is something like this:
from BeautifulSoup import BeautifulSoup
import urllib2
url="http://www.any_url.com"
page=urllib2.urlopen(url)
soup = BeautifulSoup(page.read())
#The data I need is coming from HTML tag of td
page_find=soup.findAll('td')
for page_data in page_find:
print page_data.string
#I tried to create my list here
page_List = [page_data.string]
print page_List
page_data.stringvalues into thepage_List?