antichat-0.0.7
توضیحات
Simple forum.antichat.ru wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | antichat-0.0.7 |
| نام | antichat |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | drygdryg |
| ایمیل نویسنده | drygdryg2014@yandex.com |
| آدرس صفحه اصلی | https://github.com/drygdryg/antichat_python |
| آدرس اینترنتی | https://pypi.org/project/antichat/ |
| مجوز | MIT |
# Python wrapper for https://forum.antichat.ru/
[](https://pypi.python.org/pypi/antichat/)
[](https://pypi.python.org/pypi/antichat/)

## 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
```python
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
```python
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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | beautifulsoup4 |
| - | lxml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl antichat-0.0.7:
pip install antichat-0.0.7.whl
نصب پکیج tar.gz antichat-0.0.7:
pip install antichat-0.0.7.tar.gz