responsebot.models¶
Entity classes for various entity types for ResponseBot
Classes
Tweet(data) |
Represents a tweet. |
User(data) |
Represents a user. |
TweetFilter([track, follow]) |
Define criteria to filter tweets from Twitter’s public stream. |
Event(data) |
Represent a user events (e.g. |
-
class
responsebot.models.Event(data)¶ Represent a user events (e.g. following, unfollowing, etc.). See more here and here.
-
__init__(data)¶ Parameters: data (dictionary) – Parsed JSON data
-
-
class
responsebot.models.List(data)¶ Represent a user list.
-
__init__(data)¶ Parameters: data (dictionary) – Parsed JSON data
-
-
class
responsebot.models.Tweet(data)¶ Represents a tweet. E.g. you can get a tweet’s text via it’s
textproperty (tweet.text). All properties exceptretweeted_status,quoted_status,quoted_status_id_str,in_reply_to_status_idandin_reply_sto_status_id_strhave the same name as Twitter defined them here.retweeted_statusis renamed toretweeted_tweet, similar for other properties above.-
__init__(data)¶ Parameters: data (dictionary) – Parsed JSON data
-
-
class
responsebot.models.TweetFilter(track=[], follow=[])¶ Define criteria to filter tweets from Twitter’s public stream. See track and follow parameters in here.
-
__init__(track=[], follow=[])¶ Parameters: - track – A list of keywords to follow (each could also be a @mention or a #hashtag)
- follow – A list of user ID strings to follow
Returns:
-
-
class
responsebot.models.User(data)¶ Represents a user. E.g. you can get a user’s screen name via it’s
screen_nameproperty (user.screen_name). All properties exceptstatushave the same name as Twitter defined them here.statusis renamed totweet.-
__init__(data)¶ Parameters: data (dictionary) – Parsed JSON data
-