
Outils veille Trouver les flus RSS des résultats de recherche sur Twitter Il y a déjà plusieurs semaines, Twitter a modifié les pages de ses résultats de recherche et a supprimé les liens pointant vers le RSS des résultats de recherche. Probablement afin de limiter les appels à son infrastructure par les logiciels qui n’utilisent pas ses API et qui donc peuvent impacter le bon fonctionnement de son infrastructure. Quoiqu’il en soit, les URLs de ces RSS ne se sont pas totalement volatilisés dans le néant. Les URLs sont toujours fonctionnelles mais il vous faudra en connaître la structure qu’il vous suffira alors d’ajouter à votre lecteur RSS, ou à votre logiciel de veille.
7. Input and Output — Python v2.7.5 documentation There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This chapter will discuss some of the possibilities. 7.1. So far we’ve encountered two ways of writing values: expression statements and the print statement. Often you’ll want more control over the formatting of your output than simply printing space-separated values. The string module contains a Template class which offers yet another way to substitute values into strings. One question remains, of course: how do you convert values to strings? The str() function is meant to return representations of values which are fairly human-readable, while repr() is meant to generate representations which can be read by the interpreter (or will force a SyntaxError if there is no equivalent syntax). Some examples: Here are two ways to write a table of squares and cubes: There is another method, str.zfill(), which pads a numeric string on the left with zeros. '!
15 Fascinating Ways to Track Twitter Trends One of the great things about TwitterTwitter reviews is that it is a great place to track emerging trends. When major events or big stories occur, people tweet about it and it inevitably ends up at the top of Twitter Search as a top trend. But this only scratches the surface of tracking Twitter trends. There are a wide variety of web applications, Twitter accounts, and even iPhone apps that can help people do everything from track popular hashtags to graph out recent Twitter trends. Web-based Applications 1. 2. 3. 4. 5. 6. 7. Twitter Accounts 8. twithority: Twithority is an easy way to have the most recent Twitter trends tweeted to you. 9. 10. 11. gtrend: gtrend is short for "Google Trend." iPhone Apps 12. 13.
How to Get RSS Feeds for Twitter with Google Scripts The step-by-step guide explains how you can easily create Twitter RSS feeds for the new Twitter API with the help of Twitter widgets and a Google Script. Twitter does not offer RSS Feeds so here is a simple workaround that you can use to generate RSS feeds for your various Twitter streams including Twitter search results, user timelines, favorites, lists and even the new Twitter collections. RSS feeds are essential if you need to use your Twitter data elsewhere. For instance, you need RSS feeds to create recipes in IFTTT that get triggered when there’s a new @mention or a new tweet is added to search results. You can import your Twitter timeline automatically into your blog through RSS feeds. You can follow Twitter accounts in an RSS reader like Feedly or even Google Docs. There are two way to create RSS feeds for Twitter. The trick is simple. On the Twitter website, go to Settings -> Widgets (link) and create a new widget.
Error Codes & Responses Updated on Tue, 2014-04-15 17:12 HTTP Status Codes The Twitter API attempts to return appropriate HTTP status codes for every request. It is possible to suppress response codes for the REST API. Error Messages When the Twitter API returns error messages, it does so in your requested format. Error Codes In addition to descriptive error text, error messages contain machine-parseable codes. If you see an error response which is not listed in the above table, then fall back to the HTTP status code in order to determine the best way to address the error.
python-twitter - A python wrapper around the Twitter API GitHub is now the "source of truth" but I will always try to update to this project page. A Python wrapper around the Twitter API Author: The Python-Twitter Developers <python-twitter@googlegroups.com> Introduction This library provides a pure Python interface for the Twitter API. Twitter ( provides a service that allows people to connect via the web, IM, and SMS. Building From source: Install the dependencies: Download the latest python-twitter library from: Extract the source distribution and run: $ python setup.py build $ python setup.py install Testing With setuptools installed: $ python setup.py test Without setuptools installed: $ python twitter_test.py Getting the code View the trunk at: Documentation Using Todo
Expand The Short URLs On Twitter Itself To Check Original Long URL We all are aware that most of the URLs shared on Twitter are short one and if you need to see the original URL then you will have to use third party services to do that. But now you can expand the short URLs and check the original one on Twitter itself. To expand the short URL on Twitter, you will have to use Twitter Search. First of all try to find the tweet on twitter search by looking for the term , keyword from the tweet. This is very important for security purposes as well because short URLs can have a link to malware sites or other harmful sites. Enjoy your tweets. Sanjeev Mishra is a professional blogger and an Internet Marketing Consultant based in India.
Twitter sentiment analysis using Python and NLTK | Laurent Luce's Blog This post describes the implementation of sentiment analysis of tweets using Python and the natural language toolkit NLTK. The post also describes the internals of NLTK related to this implementation. Background The purpose of the implementation is to be able to automatically classify a tweet as a positive or negative tweet sentiment wise. The classifier needs to be trained and to do that, we need a list of manually classified tweets. Let’s start with 5 positive tweets and 5 negative tweets. Positive tweets: I love this car.This view is amazing.I feel great this morning.I am so excited about the concert.He is my best friend. Negative tweets: I do not like this car.This view is horrible.I feel tired this morning.I am not looking forward to the concert.He is my enemy. In the full implementation, I use about 600 positive tweets and 600 negative tweets to train the classifier. Next is a test set so we can assess the exactitude of the trained classifier. Test tweets: Implementation Classifier Classify
twitter - Find where a t.co link goes to Expand any shortened url using PHP Recently for a project which I was working on, I wanted a way to expand urls shorted by url shorteners. After a couple of web searches I found an API site called LongURL . This service was really slow and I had to look for alternatives. I thought of writing my own using curl and then parse the headers. This function is all we need to expand the urls. Enjoy Related posts Tags: Bit.ly , PHP , Url 10 raccourcisseurs d'URL fournissant des statistiques Par les temps qui courent, rien n'est plus éphémère qu'un service d'URL shortener (traduisible en un laborieux "raccourcisseur d'URL"). Souvenez-vous du défunt tr.im ! Les dix services évoquées dans cet article ne seront pas de trop pour vous aider à choisir l'outil idéal pour suivre les statistiques de vos liens raccourcis. Bien que les services soit classés par ordre alphabétique, je recommande en particulier l'excellent Twlr.me situé en fin d'article. Probablement leader des raccourcisseurs d'URL depuis que Twitter l'a préféré à TinyURL, Bit.ly propose un éventail complet de données statistiques : un histogramme de la répartition des clicks dans le temps, la liste des référants et des discussions Twitter, la localisation par pays, ou le nombre de partages sur Facebook... BudURL.com nécessite une inscription pour consulter les statistiques d'une URL raccourcie. À noter que Ow.ly est l'un des deux raccourcisseurs les plus courts de cette liste.