Использование функций форума через python
Project description
Установка:
pip install youapi
Примеры:
- Информация о теме
from pyyouapi import youapi client = youapi.Api(cookie, useragent) print(client.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) - Редактировать тему
-
likePostlikePost(post_id: int, reaction_id: int) - Лайкнуть пост
-
getThreads(forum_id: int, page: int) - Список тем раздела
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
youapi-0.2.tar.gz
(2.5 kB
view details)
File details
Details for the file youapi-0.2.tar.gz.
File metadata
- Download URL: youapi-0.2.tar.gz
- Upload date:
- Size: 2.5 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 |
1e30b5af34f6ff2d7922d69ef6446c9ba34db0c4bb459c0e5e161caddbbd4b0e
|
|
| MD5 |
ce0c0f4fb1d2e4974a7314e4a65d5287
|
|
| BLAKE2b-256 |
0154e6f8da9812602c62b39f42f74561c9146e8a5b0d6e0e2e4259cec709b0f2
|