from bs4 import BeautifulSoup html_doc = """ The Dormouse's story

The Dormouse's story

Once upon a time there were three little sisters; and their names were Elsie, Lacie and Tillie; and they lived at the bottom of a well.

...

""" soup = BeautifulSoup(html_doc) import urllib2 search_url = 'http://fishbase.se/search.php' search_page = urllib2.urlopen(search_url) print search_page.read(200) soup = BeautifulSoup(search_page) result_url = 'http://fishbase.se/ComNames/CommonNameSearchList.php?CommonName=Tuna' result_page = urllib2.urlopen(result_url) soup = BeautifulSoup(result_page)