title: CSS selectors to be used for scraping specific links
body: <p>I am new to Python and working on a scraping project. I am using Firebug to copy the CSS path of required links. I am trying to collect the links under the tab of "UPCOMING EVENTS" from <a href="http://kiascenehai.pk/" rel="nofollow">http://kiascenehai.pk/</a> but it is just for learning how I can get the specified links.</p>
  
  <p>I am looking for the fix of this problem and also suggestions for how to retrieve specified links using CSS selectors. </p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  
  url = "http://kiascenehai.pk/"
  
  r  = requests.get(url)
  
  data = r.text
  
  soup = BeautifulSoup(data)
  
  for link in soup.select("html body div.body-outer-wrapper div.body-wrapper.boxed-mode div.main-     outer-wrapper.mt30 div.main-wrapper.container div.row.row-wrapper div.page-wrapper.twelve.columns.b0 div.row div.page-wrapper.twelve.columns div.row div.eight.columns.b0 div.content.clearfix section#main-content div.row div.six.columns div.small-post-wrapper div.small-post-content h2.small-post-title a"):
      print  link.get('href')
  </code></pre>