Skip to main content

Simple forum.antichat.ru wrapper

Project description

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

PyPI pyversions PyPI license PyPI - Downloads

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 = antichat.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.4.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file antichat-0.0.4.tar.gz.

File metadata

  • Download URL: antichat-0.0.4.tar.gz
  • Upload date:
  • Size: 4.3 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

Hashes for antichat-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b292ef89f4b958a252d413807cbfa79218e689257a0b8d70a5003bbbcba19a4e
MD5 1bed9e616101458f75908a68763a063f
BLAKE2b-256 5f3edd9def1f89d78964ed7a3ca0c9b416be0a68d6653f2a9f19306c4eb1bd89

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page