Fully asynchronous read-only API wrapper for 2ch.hk (dvach)


Keywords
2ch, Двач, Dvach, api, wrapper, async, asyncio, python
License
MIT
Install
pip install aio2ch==3.2.1

Documentation

Logo

License Changelog Downloads PyPi Python

Fully asynchronous read-only API wrapper for 2ch.hk (dvach, Двач)

Requirements

Install with pip

Build from source

Usage

Simple usage (in this case client.close() must be called when client is no longer needed)

Or you can use it as a context manager

Get all boards

In addition we can get status for each method. This is useful for debug purposes or if retries are needed

Get all threads from a board

Get top threads from a board sorted by method (views, score or posts_count)

Get all thread's posts (thread is an instance of Thread)

Get all thread's posts by url

Get all media in all thread's posts (images, webm and so on)

Get specific thread media

Download all thread media