beem.discussions¶
-
class
beem.discussions.
Comment_discussions_by_payout
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get comment_discussions_by_payout
Parameters: from beem.discussions import Query, Comment_discussions_by_payout q = Query(limit=10) for h in Comment_discussions_by_payout(q): print(h)
-
class
beem.discussions.
Discussions
(lazy=False, use_appbase=False, blockchain_instance=None, **kwargs)¶ Bases:
object
Get Discussions
Parameters: blockchain_instance (Steem) – Steem instance -
get_discussions
(discussion_type, discussion_query, limit=1000, raw_data=False)¶ Get Discussions
Parameters: - discussion_type (str) – Defines the used discussion query
- discussion_query (Query) – Defines the parameter for searching posts
- raw_data (bool) – returns list of comments when False, default is False
from beem.discussions import Query, Discussions query = Query(limit=51, tag="steemit") discussions = Discussions() count = 0 for d in discussions.get_discussions("tags", query, limit=200): print(("%d. " % (count + 1)) + str(d)) count += 1
-
-
class
beem.discussions.
Discussions_by_active
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
get_discussions_by_active
Parameters: from beem.discussions import Query, Discussions_by_active q = Query(limit=10) for h in Discussions_by_active(q): print(h)
Bases:
list
Get Discussions by author before date
Note
To retrieve discussions before date, the time of creation of the discussion @author/start_permlink must be older than the specified before_date parameter.
Parameters: - author (str) – Defines the author (required)
- start_permlink (str) – Defines the permlink of a starting discussion
- before_date (str) – Defines the before date for query
- limit (int) – Defines the limit of discussions
- use_appbase (bool) – use condenser call when set to False, default is False
- raw_data (bool) – returns list of comments when False, default is False
- blockchain_instance (Steem) – Steem instance
from beem.discussions import Query, Discussions_by_author_before_date for h in Discussions_by_author_before_date(limit=10, author="gtg"): print(h)
-
class
beem.discussions.
Discussions_by_blog
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions by blog
Parameters: from beem.discussions import Query, Discussions_by_blog q = Query(limit=10) for h in Discussions_by_blog(q): print(h)
-
class
beem.discussions.
Discussions_by_cashout
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions_by_cashout. This query seems to be broken at the moment. The output is always empty.
Parameters: from beem.discussions import Query, Discussions_by_cashout q = Query(limit=10) for h in Discussions_by_cashout(q): print(h)
-
class
beem.discussions.
Discussions_by_children
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions by children
Parameters: from beem.discussions import Query, Discussions_by_children q = Query(limit=10) for h in Discussions_by_children(q): print(h)
-
class
beem.discussions.
Discussions_by_comments
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions by comments
Parameters: - discussion_query (Query) – Defines the parameter searching posts, start_author and start_permlink must be set.
- use_appbase (bool) – use condenser call when set to False, default is False
- raw_data (bool) – returns list of comments when False, default is False
- blockchain_instance (Steem) – Steem instance
from beem.discussions import Query, Discussions_by_comments q = Query(limit=10, start_author="steemit", start_permlink="firstpost") for h in Discussions_by_comments(q): print(h)
-
class
beem.discussions.
Discussions_by_created
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions_by_created
Parameters: from beem.discussions import Query, Discussions_by_created q = Query(limit=10) for h in Discussions_by_created(q): print(h)
-
class
beem.discussions.
Discussions_by_feed
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions by feed
Parameters: from beem.discussions import Query, Discussions_by_feed q = Query(limit=10, tag="steem") for h in Discussions_by_feed(q): print(h)
-
class
beem.discussions.
Discussions_by_hot
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions by hot
Parameters: from beem.discussions import Query, Discussions_by_hot q = Query(limit=10, tag="steem") for h in Discussions_by_hot(q): print(h)
-
class
beem.discussions.
Discussions_by_promoted
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions by promoted
Parameters: from beem.discussions import Query, Discussions_by_promoted q = Query(limit=10, tag="steem") for h in Discussions_by_promoted(q): print(h)
-
class
beem.discussions.
Discussions_by_trending
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get Discussions by trending
Parameters: from beem.discussions import Query, Discussions_by_trending q = Query(limit=10, tag="steem") for h in Discussions_by_trending(q): print(h)
-
class
beem.discussions.
Discussions_by_votes
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get discussions_by_votes
Parameters: from beem.discussions import Query, Discussions_by_votes q = Query(limit=10) for h in Discussions_by_votes(q): print(h)
-
class
beem.discussions.
Post_discussions_by_payout
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Get post_discussions_by_payout
Parameters: from beem.discussions import Query, Post_discussions_by_payout q = Query(limit=10) for h in Post_discussions_by_payout(q): print(h)
-
class
beem.discussions.
Query
(limit=0, tag='', truncate_body=0, filter_tags=[], select_authors=[], select_tags=[], start_author=None, start_permlink=None, start_tag=None, parent_author=None, parent_permlink=None, start_parent_author=None, before_date=None, author=None)¶ Bases:
dict
Query to be used for all discussion queries
Parameters: - limit (int) – limits the number of posts
- tag (str) – tag query
- truncate_body (int) –
- filter_tags (array) –
- select_authors (array) –
- select_tags (array) –
- start_author (str) –
- start_permlink (str) –
- start_tag (str) –
- parent_author (str) –
- parent_permlink (str) –
- start_parent_author (str) –
- before_date (str) –
- author (str) – Author (see Discussions_by_author_before_date)
from beem.discussions import Query query = Query(limit=10, tag="steemit")
-
class
beem.discussions.
Replies_by_last_update
(discussion_query, lazy=False, use_appbase=False, raw_data=False, blockchain_instance=None, **kwargs)¶ Bases:
list
Returns a list of replies by last update
Parameters: - discussion_query (Query) – Defines the parameter searching posts start_parent_author and start_permlink must be set.
- use_appbase (bool) – use condenser call when set to False, default is False
- raw_data (bool) – returns list of comments when False, default is False
- blockchain_instance (Steem) – Steem instance
from beem.discussions import Query, Replies_by_last_update q = Query(limit=10, start_parent_author="steemit", start_permlink="firstpost") for h in Replies_by_last_update(q): print(h)
Bases:
list
Returns the list of trending tags.
Parameters: from beem.discussions import Query, Trending_tags q = Query(limit=10, start_tag="") for h in Trending_tags(q): print(h)