beautifulsoup - missing links from soup object -
this code extract amazon links. there 1 link on page (may more one) not showing in results.
myurl='http://www.apartmenttherapy.com/11-everyday-items-under-25-everyone-needs-at-home-223494?utm_source=rss&utm_medium=feed&utm_campaign=category%2fchannel%3a+main' import urllib2 import beautifulsoup request = urllib2.request(myurl) response = urllib2.urlopen(request) soup = beautifulsoup.beautifulsoup(response) in soup.findall('a'): if 'amazon' in a['href']: print a['href']
how make sure amazon links displayed?
Comments
Post a Comment