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
<entry> | |
<id>tag:openresear.ch,2010:hypothesis01</id> | |
<title>Jessy posted a Hypothesis</title> | |
<published>2010-07-02T15:29:00Z</published> | |
<!-- the link provides an HTML representation of the activity --> | |
<link rel="alternate" type="text/html" | |
href="http://openresear.ch/jessy/labbook01/hypothesis/1" /> | |
<!-- this is the base verb that our custom verb builds on --> |
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
#!/usr/bin/python | |
import urllib | |
def encode_tweet(tweet): | |
base_url="http://twitter.com/home?" | |
query = {"status": tweet} | |
return base_url+urllib.urlencode(query) | |
if __name__ == '__main__': |
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
#!/usr/bin/python | |
''' | |
Shows twitter friends sorted by tweet frequency. | |
''' | |
import urllib, urllib2, json, datetime | |
def get_friends(username): | |
friends = {} |
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
#!/usr/bin/python | |
import json, urllib2 | |
''' | |
retrieves all ideas from all categories for all agencies, and | |
normalizes category names from unique numerical ids to shared category | |
names so they can be compared across agencies. each idea in the list | |
contains the following keys: |
NewerOlder