Skip to main content
Solved

TwitterSearcher search parameters

  • February 27, 2017
  • 7 replies
  • 12 views

Forum|alt.badge.img

Hello, I am using TwitterSearcher and I was wondering if I could search a string with more than one words, e.g. "Big Car" instead of just "Car". Or even multiple words? Thanks

Best answer by david_r

According to the Twitter search API documentation, searcing for

big car

will return both "big" and "car". If you search for

"big car"

it'll return only the exact phrase.

More info here under Query operators:

https://dev.twitter.com/rest/public/search

Just be aware of the following limitation:

Before getting involved, it’s important to know that the Search API is focused on relevance and not completeness. This means that some Tweets and users may be missing from search results. If you want to match for completeness you should consider using a Streaming API instead.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

david_r
Celebrity
  • Best Answer
  • February 27, 2017

According to the Twitter search API documentation, searcing for

big car

will return both "big" and "car". If you search for

"big car"

it'll return only the exact phrase.

More info here under Query operators:

https://dev.twitter.com/rest/public/search

Just be aware of the following limitation:

Before getting involved, it’s important to know that the Search API is focused on relevance and not completeness. This means that some Tweets and users may be missing from search results. If you want to match for completeness you should consider using a Streaming API instead.


Forum|alt.badge.img
  • Author
  • February 28, 2017

Thanks david_r!


Forum|alt.badge.img
  • Author
  • April 3, 2017

Hi,

It seems that TweetSearcher is looking for the Keywords as one string, eg if I search for the phrase: "big car"@mplampa, it is searching for the string "big car @mplampa", instead of the phrase "big car" mentioning twitter account "mplampla".

Therefore, I cannot see how I can use the query operators as shown in Twitter Search API webpage (https://dev.twitter.com/rest/public/search).

What I want to do is look for words or phrases in specific twitter accounts.

Can anyone shed some light please? Thanks.


david_r
Celebrity
  • April 3, 2017

Hi,

It seems that TweetSearcher is looking for the Keywords as one string, eg if I search for the phrase: "big car"@mplampa, it is searching for the string "big car @mplampa", instead of the phrase "big car" mentioning twitter account "mplampla".

Therefore, I cannot see how I can use the query operators as shown in Twitter Search API webpage (https://dev.twitter.com/rest/public/search).

What I want to do is look for words or phrases in specific twitter accounts.

Can anyone shed some light please? Thanks.

You may want to contact Safe support for this one, having the source code for the TweetSearcher transformer will be necessary to say how they've implemented the API in the transformer.

Forum|alt.badge.img
  • Author
  • April 3, 2017
You may want to contact Safe support for this one, having the source code for the TweetSearcher transformer will be necessary to say how they've implemented the API in the transformer.
Thanks for the reply David_R. I have done so. I will let ypu know their answer once I get it.

 

 


Forum|alt.badge.img
  • Author
  • April 6, 2017

I found out that you can use the operators as shown in the Twitter API without a problem! It seems that FME is doing the URL encoding automatically. Thanks.


david_r
Celebrity
  • April 6, 2017

I found out that you can use the operators as shown in the Twitter API without a problem! It seems that FME is doing the URL encoding automatically. Thanks.

That's excellent news, thanks for sharing.