Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to "parse" multiple links?

$
0
0
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:

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!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>