Affichage des articles dont le libellé est Twitter. Afficher tous les articles
Affichage des articles dont le libellé est Twitter. Afficher tous les articles

mardi 13 novembre 2012

SnapMeme

The application allows users to create mémé from a snapshot of a video. Dailymotion API are used to search for videos (according to user keywords) and disply the chosen video to user. Then at any moment the user can take a snapshot of the current displayed frame from the video, add text on it to share the resulting drawing (also called Mémé) on social networks (e.g. Twitter).

Démo
 
A snapshot of the posted message on twitter

More details about the event can be found here.

dimanche 24 juin 2012

Displaying information on maps

MappedTweets is a demo that uses Google AppEngine (Python SDK) to pin latest Twitter posts on a CloudMade map with server side scripting in Python. 
Two external APIs are used, one for submitting search queries to Twitter via its  Search API, another one for displaying map and geocoding CloudMade API.

The html map page reads the tweets data using a JSON format feed created by a Python script. Updates are made using HTML forms with Python scripts handling the HTTP POSTs to search for latest tweets.
The project code is open source, it can be found here at github.
Here is the demo itself. You can find here another GAE demo of displying and searching for information (herein images) on map.

samedi 23 juin 2012

Using Twitter Search API

Twitter Search API allows us to run searches against the real-time index of recent Tweets. 
Here is sample Python code showing how to search in twitter without using any Python third party library like twython, tweepy, python-twitter, tweetstream, etc.
Twitter search URL is http://search.twitter.com/search.format we will be using json as format for requested data.
import urllib
import json
query = "euro+2012" 
lat = str(37.781157)        
lng = str(-122.398720)
rd  = str(10000)
search = urllib.urlopen("http://search.twitter.com/search.json?geocode="+lat+","+lng+","+rd+"mi"+"&q="+query)
dict = json.loads(search.read())
for result in dict["results"]:         
    print result, "\n"
    print "*******************************" 
Printing result["text"] should give you the corresponding tweet message. To get the location from where the tweet was posted user result["location"].
You can get more information about the parameters (e.g. size of the returned result) to use in your search query here.