Class TweetFilter

The filter to be used for searching tweets.

Implements

Constructors

Properties

endDate?: Date

The date upto which tweets are to be searched.

excludeWords?: string[]

The list of words to exclude from search.

fromUsers?: string[]

The list of usernames whose tweets are to be searched.

'@' must be excluded from the username!

hashtags?: string[]

The list of hashtags to search.

'#' must be excluded from the hashtag!

includePhrase?: string

The exact phrase to search.

includeWords?: string[]

The list of words to search.

language?: string

The language of the tweets to search.

list?: string

The list from which tweets are to be searched.

maxId?: string

The id of the tweet, before which the tweets are to be searched.

mentions?: string[]

The list of username mentioned in the tweets to search.

'@' must be excluded from the username!

minLikes?: number

The minimun number of likes to search by.

minReplies?: number

The minimum number of replies to search by.

minRetweets?: number

The minimum number of retweets to search by.

onlyLinks?: boolean

Whether to search only posts that contain links.

'links' includes things like media, quotes, retweets, etc.

onlyOriginal?: boolean

Whether to search only original posts.

onlyReplies?: boolean

Whether to search only replies

onlyText?: boolean

Whether to search posts that only contain text.

optionalWords?: string[]

The optional words to search.

quoted?: string

The id of the tweet which is quoted in the tweets to search.

sinceId?: string

The id of the tweet, after which the tweets are to be searched.

startDate?: Date

The date starting from which tweets are to be searched.

top?: boolean

Whether to fetch top tweets or not.

toUsers?: string[]

The list of username to whom the tweets to be searched, are adressed.

'@' must be excluded from the username!

Methods