Twitter geo/search - twitter

I am checking Twitter Geo-search by implementing various samples by coping the same methods from this link http://thoughtfaucet.com/search-twitter-by-location/examples/.
My goal is to taking geo-search content into RSS format. I already have twitter rss search application, and now just need to put valid contents.
However, when I put something like this (geocode:41.878114, -87.629798,50mi) into Twitter search query, there is no result. The location is in Chicago, IL, and I believe it should have some tweets.
Does anyone use this practice to find surrounding tweets?, or please help and let me know if I am doing wrong.
Thanks,

The example you included has a space which should be removed.
geocode:41.878114, -87.629798,50mi
vs
geocode:41.878114,-87.629798,50mi

Related

How can I save tweets of a user as images?

There is a Twitter user who posts valuable stuff and I want to save his tweets not as text but as images (screenshots) just as you see it on your phone or computer.
I installed python-twitter and tweepy but I didn't find a solution in the docs and neither in communities so far.
Alternatively: Is there another way to save tweets in a kind of pretty, visually appealing way?
Thank you in advance.
With those libraries you can only extract Twitter data. Those aren't image processing libraries. You will have to write your own logic how you want those pictures displayed.
Look into Pillow.
I usually use this site called tweetcyborg.com It converts any tweet into an image.
I figured it out. Using Selenium Webdriver to open the Twitter account page in the browser, then scrape the tweets and use a screenshot tool to make an image. This looping through all tweets.

Is there a way to get a list of users based on a hashtag they used?

I want to get a list of users who have used a particular hashtag. Eg. #ManOfSteel.
How can I get a list of the users who are using that hashtag as well as their details (like which city they are tweeting from) using a twitter API or any other means?
Yes, you can. And it's quite simple, really.
According to the documentation:
GET search/tweets: - Returns a collection of relevant Tweets matching a specified query.
Resource URL: https://api.twitter.com/1.1/search/tweets.json
Now if you scroll down on that page, it gives an example of what a query for a tweet returns (I took a screen, sorry about the appalling arrow, it's 10am here and I haven't had my tea yet).
Great! So you know the URL and method (GET) that you need to get your data. As for searching for a hashtag specifically, the query documentation is what you're after.
This is basically as urlencoded string in the GET request like: ?q=#hashtag. Perform the search like that and you'll get back the data above. Then just loop through it, find the user object, and grab the value location key if you want the user's city.
Now, as for a library to interact with the twitter API, you haven't even stated what language you're using. From your profile, you use JAVA I'm guessing. Regardless, checkout the libraries page on the twitter dev site - there's one for JAVA that looks pretty good (and many for other languages too).
If you were using php, this post would be immensely helpful.

ios google api issue

I need to add a very common Google functionality to an iPhone app I am developing. The idea is that the user is presented with a TextBox where he can write an address (i.e.: "Amsterdam av)". The thing is that I want to add some "help" for him, se when he writes a street name, the app will show him a list of partial matches, like google Maps does here:
sample http://www.timotteo.com.ar/google.png
I canĀ“t find the exact class in the google API. It doesn't need to be as fast as google's own search, maybe the user can write "amst" and press a search button, to be presented with a list of partial matches. The API I'm looking for show return in some way a list with posibilities. All I could find for now where method that gives you the lat/long when you feed it with a specific address. Does somebody know what combination of methods/classes I should use? Maybe some example?
Txs in advance!
Perhaps you are looking for the autocomplete feature of the Places API:
https://developers.google.com/maps/documentation/javascript/places#places_autocomplete
This won't autocomplete for all addresses or streets, but rather for businesses, notable landmarks, etc.
If you want autocomplete for street addresses, I do not believe that is available through any documented APIs. That doesn't mean workarounds don't exist, but they may depend on more details about your use case. (For example, if you only care about a narrow geographic area, it may be possible to simply have a list of all the streets in your own database and handle the AJAX call yourself.)
Actully what I was looking for is this:
http://maps.google.com/maps/geo?q=amsterdam%201543&output=xml&oe=utf8&sensor=true&hl=es&gl=ar
That URL returns and XML with all the autocomplete options. All I have to do is parse that XML and voila! There I have my list.

What is the source: attribute of a tweet sent from a tweet button using the Twitter Search API?

I'm trying to use Twitter search to find all mentions of a word that DIDN'T come from a "tweet this" button. I'm trying to build a stream of all brand mentions, but I don't want to sift through all of the retweets coming from our blog, which uses Twitter's button.
As a first step, I tried looking searching for all of the tweets that came from my personal account, filtering by source:txt. It showed all of the tweets I texted in. Then source:web. It showed all of the tweets I entered on twitter.com.
But then I tried searching with source:twitterbutton. Nothing. Then source:tweetbutton. Nothing. Same with source:tweet button. I tried searching through all of Twitter's documentation on the Tweet button to see what the source: attribute is, but couldn't find anything.
When I go through my stream of tweets without filtering for the source, I see some that say via Tweet Button so I know they exist, but I can't seem to find the right source: operator to find them automatically.
FYI: I'm using the Twitter Search API Method.
Bonus points to whoever can tell me how to negate a source (return everything EXCEPT that source)
The source is Tweet Button. The correct way to search for it will be source:tweet_button. Searching by source is very unreliable though (especially for multiword sources). Filtering by source requires that you include a keyword so you can't search just by source.
To negate a source you add a - in front like this google -source:web.
Update: Multi-word sources are now _ (underscore) separated.
I started tweeting with the fine folks over at Tweet Deck since their application lets you look for ones that came from the Tweet Button. It turns out I was only one character away. D'oh!
Use source:tweet_button to get only tweets from Tweet Buttons. And, as Abraham mentioned, all you need is a - before the parameter for it to negate that source. Example search.
Thanks for all the assistance! Especially from #DesktopDeck!

google search as an rss feed

Is there a way to have treat google serach results as an rss feed?
For example say I worked for stackoverflow and wanted to montior how if the results from the following search url: http://www.google.com/search?hl=en&q=stackoverflow changes from day today.
It would be cool if I could append &output=rss to the url and get back a feed like with google news. But that does not seem to be supported.
Anyone have ideas? (Note I am programing with Ruby and Rails, if that matters)
Thanks!
Jonathan
Google has the Google Alerts service, which notifies you whenever it finds new content matching a certain query. Besides sending to an email address (instantly, daily, weekly), it allows you to create an RSS feed out of it.
No, Google doesn't offer that feature.
If you need to parse/convert the result of a query on Google, you can use a (X)HTML parser such as Nokogiri.
Beware that automatic requests to Google may violate its TOS.

Resources