Brendan Sterne
Product Management, Software Development
Skip to content
  • Home
  • About
  • Resources

Tag Archives: python

Download / Scrape Salesforce Reports in 4 lines of Python

Posted on December 11, 2012 by brendansterne

Python Code: import requests l = requests.get(“https://login.salesforce.com/?un=USERNAME&pw=PASSWORD”) d = requests.get(“https://na3.salesforce.com/REPORT_ID?view=d&snip&export=1&enc=UTF-8&xf=csv”,cookies=l.cookies) print d.content References: http://sfdc-heretic.warped-minds.com/2006/04/10/progmatic-access-to-salesforcecom-reports/ http://docs.python-requests.org/en/latest/user/quickstart/#cookies http://www.techsmog.com/index.php/2011/02/08/parsing-real-time-salesforce-com-reports-via-perlcgi-html-tables/

Posted in Uncategorized | Tagged python, software development | Leave a comment
  • Unknown's avatar

  • RSS Feed

  • Enter your email address to receive notifications of new posts by email.

    Join 500 other subscribers
  • Top Posts

    • Naming things clearly
    • Inconvenient Truths about Operating Mechanisms
    • Successful Second Products are Rare
    • How Can I Help?
    • Gmail wasn't really a 20%-time project
    • Criteria for continued funding of new products
    • Seeds, Pods and Big Bets
    • Technical Risk vs Market Risk, Part II
    • Technical Risk vs Market Risk, Part I
    • Inside Amazon.com, what's the culture really like these days?
  • Recent Posts

    • Naming things clearly
    • Inconvenient Truths about Operating Mechanisms
    • Successful Second Products are Rare
    • How Can I Help?
    • Gmail wasn’t really a 20%-time project
    • Criteria for continued funding of new products
    • Seeds, Pods and Big Bets
    • Technical Risk vs Market Risk, Part II
    • Technical Risk vs Market Risk, Part I
    • Inside Amazon.com, what’s the culture really like these days?
  • Archives

    • June 2019
    • April 2019
    • May 2018
    • January 2018
    • December 2016
    • October 2015
    • August 2015
    • June 2015
    • April 2015
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • December 2013
    • November 2013
    • October 2013
    • July 2013
    • June 2013
    • May 2013
    • March 2013
    • February 2013
    • January 2013
    • December 2012
    • November 2012
    • October 2012
    • March 2012
    • February 2012
  • Brendan on the web

    LinkedIn
    Twitter (@brendansterne)
    Google+
    GitHub
    StackOverflow
    Flickr
Brendan Sterne
Blog at WordPress.com.
  • Subscribe Subscribed
    • Brendan Sterne
    • Join 71 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Brendan Sterne
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar