Hi Kaya,

You can set Filter Endpoint for the Twitter Endpoint property and then
specify one or more user ids in the "IDs to Follow" property. It only works
with the id, so you will need to look up the id for the username before
configure it.
Another option would be to filter the received tweets based on the metadata
in the json: extract username with EvaluateJsonPath, then use
RouteOnAttribute.

Hope it helps.

Regards,
Peter Turcsanyi

On Fri, Nov 15, 2019 at 2:06 AM Kayak28 <[email protected]> wrote:

> Hello, Comunity:
>
> I am a new user of Nifi, and currently using Nifi 1.10.
> I use sequences of processors as follows.
> My current configurations are:
> 1. GetTwitter
> - Twitter Endpoint = Sample Endpoint
> - MaxClient Error try = 5
> - Language = ja
> - 4 of the Twitter API key.
>
> 2, EvaluateJsonPath
> - Destination = flowfile-attribute
> - Return Type = auto-detect
> - Path Not Found Behavior = ignore
> - Null Value Representation = empty string
> - twitter.created_at = $.created_at
> - twitter.id = $.id_str
> - twitter.lang = $.lang
> - twitter.text = $.text
>
> 3.  PutSolrContentStream
> - f.1 = id:/id
> - f.2 = twitter_text_t:/text
> - f.3 = twitter_username_s:/user/name
> - f.4 = twitter_created_at_s:/created_at
> - f.5 = twitter_timestamp_ms_tl:/timestamp_ms
> - f.6 = twitter_user_loc:/user/location
> - f.7 = twitter_favorited:/favorited
> - f.8 = twitter_url:/url
> - f.9 = twitter_favorite_count:/favorite_count
>
> By using the above settings, I successfully get tons of tweets from any
> users.
> For the first step, I would like to get tweets from a certain user,
> say @xxxxxx.
> For the second step, I would like to get tweets that are liked by the
> user, @xxxxx
>
> Is it a possible thing by Nifi?
> if so, how can I configure the processor to achieve the first step?
>
>
> I would really appreciate any input on the matter.
>
> Sincerely,
> Kaya Ota
>
>

Reply via email to