Simple forum.antichat.ru wrapper
Project description
Python wrapper for https://forum.antichat.ru/
Installation
pip install antichat
Or you can install from source with:
git clone https://github.com/drygdryg/antichat_python.git
cd antichat_python
python setup.py install
Usage
Posting
import antichat
client = antichat.Client(username='myusername', password='mypassword')
client.auth()
post_id = client.make_post(thread=12345, message='Hi there!')
client.delete_post(post_id=post_id, reason='No hello')
Reading threads
reader = client.get_reader(thread=12345)
all_posts = reader.read() # Read all posts sequentially
first_posts = reader.read(limit=20) # Get only first 20 posts
last_posts = reader.read(offset=400) # Skip first 400 posts
posts = reader.read(start_post=6789) # Read from post ID 6789
page = reader.read_page(page=5) # Read page #5
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
antichat-0.0.5.tar.gz
(4.5 kB
view details)
File details
Details for the file antichat-0.0.5.tar.gz
.
File metadata
- Download URL: antichat-0.0.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f7e8da0c3339db6a6ec4682dd6de36e64ac92923fe8b59c70af43478d969290 |
|
MD5 | 0336e90e3aebb676f84efe22bbf22901 |
|
BLAKE2b-256 | aae71ee13d21e1486d783687f14f32b60e02c1f2a8213980bd36003c9c7cd109 |