beautifulsoup - missing links from soup object -


this code extract amazon links. there 1 link on page (may more one) not showing in results.

http://www.amazon.com/gp/product/b00a0gta00/ref=pd_lpo_sbs_dp_ss_3?pf_rd_p=1944687522&pf_rd_s=lpo-top-stripe-1&pf_rd_t=201&pf_rd_i=b001u2eqkc&pf_rd_m=atvpdkikx0der&pf_rd_r=1pzmrm5x5fr2zw2e8egz

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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -