tweet-hs-1.0.1.41: Command-line tool for twitter

Safe HaskellNone
LanguageHaskell2010

Web.Tweet.Utils

Description

Miscellaneous functions that don't fit the project directly

Synopsis

Documentation

hits :: Timeline -> Timeline Source #

filter out retweets, and sort by most successful.

hits' :: Timeline -> Timeline Source #

Filter out retweets and replies, and sort by most sucessful.

getTweetsFast :: ByteString -> Either String Timeline Source #

Get a list of tweets from a response, returning author, favorites, retweets, and content. This version uses aeson, which it's far faster, but also has worse error messages.

getTweets :: ByteString -> Either (ParseError Char Void) Timeline Source #

Get a list of tweets from a response, returning author, favorites, retweets, and content.

displayTimeline :: Timeline -> String Source #

Display Timeline without color

displayTimelineColor :: Timeline -> String Source #

Display Timeline in color

lineByKey :: ByteString -> [(ByteString, ByteString)] -> ByteString Source #

Pick out a key value from a key

getConfigData :: FilePath -> IO [(ByteString, ByteString)] Source #

Get pairs of "key" to search for and actual values

filterQuotes :: Timeline -> Timeline Source #

Filter out quotes

filterReplies :: Timeline -> Timeline Source #

Filter out replies

filterRTs :: Timeline -> Timeline Source #

Filter out retweets