Hello guys, i have a problem more like a question. How i can parse multiple links with Beautiful Soup?. I have a "script" that prints multiple links and I would parse them all (not necessarily at the same time). For one url:
But... How I do it to "parse" multiple links?
Greetings and thanks in advance!
import urllib2
from BeautifulSoup import BeautifulSoup
url = 'somesite.com'
data = urllib2.urlopen(url).read()
soup = BeautifulSoup(data)
for link in soup.findAll('tag'):
print link
But... How I do it to "parse" multiple links?
Greetings and thanks in advance!