Skip to main content

Simple forum.antichat.ru wrapper

Project description

Python wrapper for https://forum.antichat.ru/

PyPI pyversions PyPI license PyPI - Downloads

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.

Files for antichat, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size antichat-0.0.7-py3-none-any.whl (5.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size antichat-0.0.7.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page