URLs extraction from specific block This script extracts all urls from a specific HTML div block (with BeautifulSoup 4) : 

raw_data = dl("http://somewhere")
links = []
soup = BeautifulSoup(raw_data)
data = str(soup.find_all('div', attrs={'class' : "results"}))
for link in BeautifulSoup(data, parse_only = SoupStrainer('a')):
    links.append(urllib.parse.unquote_plus(link['href']))
return links


Is there a more efficient and clean way to do it ?
AFAIK, you can use List comprehension to make it more efficient 

raw_data = dl("http://somewhere")
soup = BeautifulSoup(raw_data)
data = str(soup.find_all('div', attrs={'class' : "results"}))
return  [ urllib.parse.unquote_plus(link['href']) for link in BeautifulSoup(data, parse_only = SoupStrainer('a'))]