basc_py4chan.Thread – 4chan Threads¶
basc_py4chan.Thread allows for standard access to a 4chan thread, including listing all the posts in the thread, information such as whether the thread is locked and stickied, and lists of attached file URLs or thumbnails.
Basic Usage¶
-
class
basc_py4chan.Thread(board, id)[source]¶ Represents a 4chan thread.
-
closed¶ Whether the thread has been closed.
Type: bool
-
sticky¶ Whether this thread is a ‘sticky’.
Type: bool
-
archived¶ Whether the thread has been archived.
Type: bool
-
bumplimit¶ Whether the thread has hit the bump limit.
Type: bool
-
imagelimit¶ Whether the thread has hit the image limit.
Type: bool
-
custom_spoiler¶ Number of custom spoilers in the thread (if the board supports it)
Type: int
-
topic¶ Topic post of the thread, the OP.
Type: basc_py4chan.Post
-
posts¶ List of all posts in the thread, including the OP.
Type: list of basc_py4chan.Post
-
all_posts¶ List of all posts in the thread, including the OP and any omitted posts.
Type: list of basc_py4chan.Post
-
url¶ URL of the thread, not including semantic slug.
Type: string
-
semantic_url¶ URL of the thread, with the semantic slug.
Type: string
-
semantic_slug¶ The ‘pretty URL slug’ assigned to this thread by 4chan.
Type: string
-
Methods¶
Thread objects are not instantiated directly, but instead through the appropriate
basc_py4chan.Boardmethods such asbasc_py4chan.Board.get_thread().