Simple forum.antichat.ru wrapper
Project description
Python wrapper for https://forum.antichat.ru/
Installing
pip install antichat
Or you can install from source with:
https://github.com/drygdryg/antichat_python.git
cd antichat_python
python setup.py install
Using
Client
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')
Thread reader
import antichat
threadreader = ThreadReader(thread_id=12345)
all_posts = threadreader.read() # Read all posts sequentially
first_posts = threadreader.read(limit=20) # Get only first 20 posts
last_posts = threadreader.read(offset=400) # Skip first 400 posts
posts = threadreader.read(start_post=6789) # Read from post ID 6789
page = threadreader.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.1.tar.gz
(4.2 kB
view details)
Built Distribution
antichat-0.0.1-py3.8.egg
(8.5 kB
view details)
File details
Details for the file antichat-0.0.1.tar.gz
.
File metadata
- Download URL: antichat-0.0.1.tar.gz
- Upload date:
- Size: 4.2 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 | 50de31ec9900f6cba398fcaf00a9e88a60b7c606ac554faa548c0383914e3ba6 |
|
MD5 | b25e041777f7348547b5c1914d7a491d |
|
BLAKE2b-256 | aa6c86585bc0efa0089f44896a5ad4ab5f2c831fa8f56a8b6c9a30c34b262f8a |
File details
Details for the file antichat-0.0.1-py3.8.egg
.
File metadata
- Download URL: antichat-0.0.1-py3.8.egg
- Upload date:
- Size: 8.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 | 32912a4d7c93300443ba2e85171df8acae6f2b27edde4001cbeb4d588562c2da |
|
MD5 | b37dd95c0d3a977ef1bc8531f65218b8 |
|
BLAKE2b-256 | 2a19b24e349532c6d6fdc4e058fb937ab828e22b64265e302917b9dfcf82c3f4 |