title: scrape href of each product from website using python
body: <p>I'm using beautifulsoup to scrape the href of each product in this webpage: <a href="http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&amp;field-keywords=digital+camera" rel="nofollow">http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&amp;field-keywords=digital+camera</a>. These hrefs end up with "keywords=digital+camera"
  Here's my code:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  
  url = "http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&amp;field-keywords=digital+camera"
  keyword = "keywords=digital+camera"
  r = requests.get(url)
  data = r.text
  soup = BeautifulSoup(data)
  for link in soup.find_all('a'):
      href = link.get('href')
      if href is None:
          continue
      elif keyword in href:  
          print href
  </code></pre>
  
  <p>I got nothing back from above script, is there anything I can do to fix it?
  Thanks</p>