Exclude replies from official twitter search widget - twitter

I have a twitter search-widget on my site with the following search: from:account_name.
But it now shows my twitterstream with all the replies to. I want to exclude those from the list.
Does anyone know how to do that? After searching there are a lot options with the REST-api but I just need it for the search-string.

I found an option to include retweets include:retweets so I tried to change that to exclude:replies and it worked!
My search-string is now: from:account_name exclude:replies

Related

How to get the follow suggestions from twitter?

On Twitter there is a page that lists some users that are suggested "Twitter accounts suggested for you based on who you follow and more." from this link: https://twitter.com/i/#!/who_to_follow/suggestions
I didn't find an API to retrieve the same list (maybe I am missing it?).
Does anybody knows how that list can be accessed? (other than parsing the html)
The good thing about that list, is that it is not categorized and it does contain common people (ie. not sport/cinema superstars etc.)
I think this can be achieved in two steps by twitter API. Seems like first you need to get the categories that twitter suggested to user, then from those categories you can get the suggested users to the authenticated user.
https://dev.twitter.com/docs/api/1.1/get/users/suggestions
https://dev.twitter.com/docs/api/1.1/get/users/suggestions/%3Aslug

Twitter API - search tweets and filter by bio keywords

Is there any way at all to search for latest tweets by keyword, then - crucially - only show the tweets when the twitter user it belongs to has a keyword in their bio? I've been searching for ways to do this and have found nothing other than sites (e.g FollowerWonk) which offer this functionality but not an API to tap into. Any advice appreciated!
You can use the regular Twitter api to search for Tweets containing your keyword. All docs are at dev.twitter.com. In the results set that you get back, you can also get the bio of each user. You could make a subselection in that text. We found the easiest way to load the results into a SOLR instance, and search on anything you want.

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!

Searching tweets published from Delicious with Twitter API

I am a new user in StackOverflow. I am developing a tool.
My problem is that I am trying get tweets published from Delicious ("X minutes ago via Delicious").
In Twitter API Documentation (https://dev.twitter.com/doc/get/search), I can see:
Originating from an application:
http://search.twitter.com/search.atom?q=landing+source:tweetie
I am copy & paste "http://search.twitter.com/search.atom?q=landing+source:tweetie" in web navigator. The example from Twitter API don't work!!! :S
However, I am trying others search applications, and WORK:
http://search.twitter.com/search.atom?q=landing+source:TweetDeck
http://search.twitter.com/search.atom?q=landing+source:twitterfeed
http://search.twitter.com/search.atom?q=landing+source:ping.fm
http://search.twitter.com/search.atom?q=landing+source:web
http://search.twitter.com/search.atom?q=landing+source:SocialOomph
http://search.twitter.com/search.atom?q=landing+source:tumblr
But when I try to search for Delicious, don't work:
http://search.twitter.com/search.atom?q=landing+source:Delicious
Why? I am try next, and don't work:
http://search.twitter.com/search.atom?q=landing+source:del.icio.us
http://search.twitter.com/search.atom?q=landing+source:icio.us
Exists solution to http://search.twitter.com/search.atom?q=landing+source:Delicious?
I am try to access to Twitter API IRC, but don't work... :S
Thank you very much, and I sorry my bad English. Regards! :)
With landing+source:Delicious there are no search results because there frankly aren't any recent tweets containing "landing" that were tweeted using Delicious.
The other source applications contain results because people have been tweeting "landing" using other apps, as you've noted.
But source:Delicious does work; try searching for other terms, like food+source:Delicious or happy+source:Delicious and you should see results.

How to crawl retweets of a certain user?

I studied the Twitter API Documentation today. Only find that we could use "Twitter REST API Method: statuses user_timeline" to acquire statuses of a certain user. Retweets are stripped out of the user_timeline for backwards compatibility reasons. If I want retweets included, API Documentation recommend "statuses retweeted_by_me", but retweeted_by_me cannot return the retweets by other users.
I think maybe we can analyse the twitter webpage of a certain user to get his retweets. However is there any elegant way to crawl retweets of a certain user?
Thanks in advance!
This was addressed recently by the Twitter devs. You can now add a include_rts=true to your call to user_timeline. See the full discussion here: http://groups.google.com/group/twitter-development-talk/browse_thread/thread/7a4be385ff549ed0
You want to use the retweeted_to_me API call and then create a union with user_timeline and sort by datetime. It's a little annoying that they don't mix the stream for you.
Call statuses/user_timeline for the specific user then for each status you will have to call either statuses/id/retweeted_by or statuses/retweets.
http://apiwiki.twitter.com/Twitter-REST-API-Method:-GET-statuses-id-retweeted_by
http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-retweets
You have to manually use GET statuses/retweets/:id for every Tweet from the use_timeline.

Resources