p621.posts.Post

attributes

int

id

unique post ID

str

description

description of the post

File

file

source file of the post

Preview

preview

preview image of the post

list[str]

sources

URLs for the original source of the file

str

created_at

creation time of the post

str

updated_at

post’s time of last update

Score

score

upvotes and downvotes for the post

int

favorite_count

number of favorites of the post

int

comment_count

numbers of comments of the post

Tags

tags

tags on the post

int

change_sequence

incremental number of times the post is changed

dict

flags

flags on the post

str

rating

rating of the post

list[str]

pools

pools the post is a part of

str

parent

post ID of the parent of the post if the post has one

list[str]

children

post IDs of the children of the post

int

approver_id

ID of the user that approved the post

int

uploader_id

ID of the user that uploaded the post

methods

str

page_url

the URL of the post’s web page

download

downloads the source file of the post

open

opens the web page of the post on the browser

page_url

Post.page_url()

the URL of the post’s web page

returns

str - page URL

download

Post.download(path)

downloads the source file of the post

parameters

  • str path (optional) - path of the download, current directory if unspecified

open

Post.open()

opens the web page of the post on the browser

contents