Allows you to do various things with the slightly unofficial Repl Talk API
How to use the
repltalk lib for Python. The functions are pretty self explanatory but I've added a short description for each of them.
The following functions are all coroutines because asyncio is cool
login(username, password)Logs in to Repl.it with your username and password. Your bot must be verified in order to use this function.
get_post(post_id)Gets the post with that id. returns Post
post_exists(post_id)Returns whether or not the post exists.
get_leaderboard(limit=30)Gets the top users from the Repl Talk leaderboard. returns list of
get_all_comments()Gets all the recent comments from Repl Talk. *returns list of
get_user(username)Gets the user with that username. returns User
allThe All board on Repl Talk
shareThe Share board on Repl Talk
askThe Ask board on Repl Talk
announcementsThe Announcements board on Repl Talk
challengeThe Challenge board on Repl Talk
learnThe Learn board on Repl Talk
get_posts(sort='top', search='')Gets the most recent posts from that board. Sort is the sorting order (top|hot|new) and search is the search query. returns PostList
idThe post ID.
titleThe post title.
contentThe post content.
boardThe board the post was made on.
votesThe amount of upvotes the post has.
authorThe post author. Will be a User object.
datetimeThe time the post was created at.
urlThe post url in Repl Talk.
replThe repl attached to the post.
languageThe Language of the Repl on the post.
show_hostedIndicates if the post has a hosted repl linked to it.
is_announcementIf the post is marked as an announcement.
pinnedWhether or not the post has been pinned to the top of the board
can_editIndicates if the user can edit the post. This will be False unless you created the post.
can_commentIf the user can comment on the post.
can_voteIndicates if the user can upvote the post.
has_votedIndicates if the user has already voted on the post.
is_lockedIndicates if the post is locked.
can_answerWhether or not the user can answer the post.
answeredIf the post has been answered (will always be False if can't answer).
comment_countThe amount of comments the post has
get_comments()Gets the comments on the post.
post_comment(content)Posts a comment on the post.
idThe post ID.
contentThe post body.
time_createdThe time the comment was created at.
can_editIndicates if the user can edit the comment.
can_commentWhether or not the user can post a comment.
urlThe comment's url.
votesGets the amount of upvotes the comment has.
can_voteIndicates if the user can vote on the comment.
has_votedIndicates if the user has already upvoted the post.
reply(content)Replies to the comment with the content.
idThe user ID. Pretty useless since you can't get the user from their id.
nameThe user's username.
avatarThe user's avatar url.
urlThe user's profile link.
cyclesThe amount of cycles that user has.
rolesThe roles the user has set on their profile.
bioThe short description written by a user on their profile.
Acts basically like a normal list.
nextGets the next page of posts.
idThe Repl ID.
embed_urlThe url for embedding the Repl on a web page.
urlThe url of the Repl.
titleThe title of the Repl.
languageThe Language of the Repl.
Represents a programming language.
nameGets the default name of the language (ie python3).
display_nameGets the display name of the language (ie Python).
iconGets the url to the SVG for the language icon.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|repltalk-0.6.6-py3-none-any.whl (8.8 kB) Copy SHA256 hash SHA256||Wheel||py3|
|repltalk-0.6.6.tar.gz (8.2 kB) Copy SHA256 hash SHA256||Source||None|