Python XenForo Api Lib für Posten
Project description
! PRE-VERSION !
Python Lib für die XenForo api
Sample:
from LordXen import XenForo
forum_url = input('URL ? ')
api_key = input('API_KEY ? ')
x = XenForo(url=forum_url, api_key=api_key)
xen_thread_800 = x.get_thread(800)
s = xen_thread_800.exists()
if s:
print("Thread with id 800 exist")
else:
print("Thread with id 800 not exist")
# get node
xen_node = x.get_node(209)
# create new thread
new_xen_thread = xen_node.create_thread('Test', message="LOL", tags='test')
# edit thread
s = new_xen_thread.edit(add_tags=['hello', 'world'], remove_tags=['test'])
if s:
print(f"Thread with id {new_xen_thread.thread_id} edited!")
# post to thread
s = new_xen_thread.create_post('Hallo Test')
if s:
print(f"Created post for {new_xen_thread.thread_id}")
Output:
Thread with id 800 exist
Thread with id 17291 edited!
Created post for 17291
by LordBex
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
LordXen-2023.7.23.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file LordXen-2023.7.23.tar.gz.
File metadata
- Download URL: LordXen-2023.7.23.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
988ab59f87501118d4c87c5b57e06ddae8c4acdf6a3a6eff6d72afc7f7b40d53
|
|
| MD5 |
f7b3593107195c6c629c085d9ce38efa
|
|
| BLAKE2b-256 |
fff170a953d41ff909a6713004e65382e425551b7b9f42c1bfc17d0afc72f80b
|
File details
Details for the file LordXen-2023.7.23-py3-none-any.whl.
File metadata
- Download URL: LordXen-2023.7.23-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9d416ff3a4a6183c614fe41f0484d9da3dd533d7a3adf667e44cad0e4ec2643
|
|
| MD5 |
aa749ed2e48cb8a78534e2479ca4befa
|
|
| BLAKE2b-256 |
404b4e1c0ba041971ab504fa9d13bc91f6a14c8ee9da3d21195e5aba682b3a44
|