class documentation
class TweetViewer(TweetHandlerI): (source)
Constructor: TweetViewer(limit, upper_date_limit, lower_date_limit)
Handle data by sending it to the terminal.
| Method | handle |
Direct data to sys.stdout |
| Method | on |
Actions when the tweet limit has been reached |
Inherited from TweetHandlerI:
| Method | __init__ |
No summary |
| Method | check |
Validate date limits. |
| Instance Variable | do |
Stores the id of the last fetched Tweet to handle pagination. |
| Instance Variable | lower |
Undocumented |
| Instance Variable | startingup |
Undocumented |
| Instance Variable | upper |
Undocumented |
Inherited from BasicTweetHandler (via TweetHandlerI):
| Method | do |
Returns False if the client should stop fetching Tweets. |
| Instance Variable | counter |
A flag to indicate to the client whether to stop fetching data given some condition (e.g., reaching a date limit). |
| Instance Variable | limit |
Undocumented |
| Instance Variable | max |
Undocumented |
overrides
nltk.twitter.api.TweetHandlerI.handleDirect data to sys.stdout
| Parameters | |
| data | Tweet object returned by Twitter API |
| Returns | |
| bool | return False if processing should cease, otherwise return True. |