Monthly Archives: December 2012

Achieving Your Way to Mediocrity

(Photo: PublicDomainPictures) I’ve been thinking about goal setting recently. ¬†Bazaarvoice is in the process of rolling out a goal process – a variation of Management By Objectives (MBO) and Objectives and Key Results (OKR). One dilemma that always seems to … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Download / Scrape Salesforce Reports in 4 lines of Python

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 , | Leave a comment