I am using BeautifulSoup to get all links of mobile phones from this url http://www.gsmarena.com/samsung-phones-f-9-0-p2.php
My code for the following is :
If you have Python 3, you can use Simon's answer with the following change:
from urllib.request import urlopen from bs4 import BeautifulSoup text = urlopen(base_url).read()