Использование функций форума через python
Project description
Установка:
pip install darkapi
Примеры:
- Информация о теме
from pydarkapi import darkapi api = darkapi.Api(cookie, useragent) print(api.getThreadInfo(thread_id))
Список методов
-
getThreadInfo(thread_id: int) - Информация о теме
-
getPosts(thread_id: int, page: int) - Получить сообщения в теме
-
createPost(thread_id, message_html) - Написать в тему
-
editPost(post_id: int, new_html) - Редактировать сообщение в теме
-
createThread(forum_id: int, title: str, message_html) - Создать тему
-
editThread(thread_id: int, title: str, message_html) - Редактировать тему
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
darkapi-0.1.tar.gz
(2.4 kB
view details)
File details
Details for the file darkapi-0.1.tar.gz.
File metadata
- Download URL: darkapi-0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6738456b53511040524924c6bfd1d442758b3eb9fb88cb13d15295c9d31f758
|
|
| MD5 |
d172ce46f27ddaa395812666b86b5c19
|
|
| BLAKE2b-256 |
ddb1957e170c61fc5f3d4d2fa314a066c88eec1d78e20a8f837a907e9eb7af6d
|