title: web scraping with python to snatch a file
body: <p>Hi I want to snatch csv file in the URL please see below [download].
  Being new to python i gotten this far can someone leverage what i have. many thanks.</p>
  
  <pre><code>from requests import session
  import bs4
  
  payload = {
      'action': 'login',
      'username': 'xxxxxxx',
      'password': 'zzzzzz'
  }
  
  with session() as c:
      c.post('https://www.zuora.com/apps/newlogin.do', data=payload)
  
      request = c.get('https://www.zuora.com/apps/JournalRuns.dox?method=view&amp;number=JR-00000119') #my target url
      soup = bs4.BeautifulSoup(request.text)
      print  soup
  
  &lt;/td&gt;
  &lt;!--z:field end--&gt;
  &lt;!--z:field begin--&gt;
  &lt;td id="" rowspan="2" style="padding-left:10px;padding-top:10px;vertical-align:top"&gt;
  &lt;!--z:label.link begin--&gt;
  &lt;span&gt; &lt;a href="JournalEntries.dox?method=view&amp;amp;number=JE-00000721" id=""&gt;JE-00000721&lt;/a&gt;&lt;/span&gt;
  &lt;!--z:label.link end--&gt;&lt;br/&gt;
  &lt;font color="gray"&gt;&lt;!--z:label.text begin--&gt;
  &lt;span class="text" id=""&gt;126 Transaction(s)&lt;/span&gt;
  &lt;!--z:label.text end--&gt;&lt;/font&gt;&lt;br/&gt;
  &lt;!--z:label.link begin--&gt;
  &lt;span&gt; &lt;a href='javascript:downloadTansactions("JournalEntries.dox?method=downloadTransactions&amp;amp;number=JE-00000721");' id=""&gt;[download]&lt;/a&gt;&lt;/span&gt;
  &lt;!--z:label.link end--&gt;
  &lt;/td&gt;
  </code></pre>