Created
December 6, 2011 22:59
-
-
Save pbapi/1440457 to your computer and use it in GitHub Desktop.
PeopleBrowsr - Positive Influencers API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
app_id = "[app_id]" | |
app_key = "[app_key]" | |
last = "yesterday" | |
count = "30" | |
source = "twitter" | |
term = "Pepsi" | |
number = "10" | |
url = 'http://api.peoplebrowsr.com/top-positive-followers?' | |
url = url + "app_id=" + app_id | |
url = url + "app_key=" + app_key | |
url = url + "&last=" + last | |
url = url + "&count=" + count | |
url = url + "&source=" + source | |
url = url + "&term=" + term | |
url = url + "&number=" + number | |
response = urllib2.urlopen( url ).read() | |
print response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment