Skip to main content

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

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.


Thanks david_r!


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.


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.
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.

 

 


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.


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.

Reply