Python vichan API Wrapper. Based on BASC-py4chan by the Bibliotheca Anonoma
Project description
The Bibliotheca Anonoma’s complete Python Wrapper for the Vichan API. Uses requests, respects if-modified-since headers on updating threads. Caches thread objects. Fun stuff.
An absolute must if you want to interface with or scrape from 8chan or other vichan-based imageboards/textboards, using a Python script._
You can install this library straight from PyPi with:
pip install pyvichan
Getting Help
If you want help, or you have some trouble using this library, our primary IRC channel is #bibanon on irc.rizon.net. Simply head in there and talk to dan or antonizoon. Otherwise, you can put a issue on our Github Issue Tracker and we’ll respond as soon as we can!
Usage
import pyvichan
v = pyvichan.Board('v', '8kun.top')
thread = v.get_thread(16959924)
print(thread)
# supports displaying extra files in one post as well!
for file in thread.file_objects():
print(file.file_url)
# In a while...
print("I fetched", thread.update(), "new replies.")
Documentation
This library mostly extends the classes of BASC-py4chan, but has some differences. There are some, but few diffrerences between py8chan and pyvichan. For now, refer to the py8chan documentation for more info.
Notice that some functions are not implemented in the 8chan API. These functions will raise an AttributeError when used.
License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
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
Built Distribution
File details
Details for the file pyvichan-0.4.3.tar.gz
.
File metadata
- Download URL: pyvichan-0.4.3.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b86b28681b8d00ab2182b44905868dbbcbe9a1fe4d0bb7f3823b6605e408a9 |
|
MD5 | 637b17107ce2a09c9433221f2b97d27a |
|
BLAKE2b-256 | 29548bc074b26dcb1cac78485a78d9576584b28262e038995e5d08b1103f5779 |
File details
Details for the file pyvichan-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: pyvichan-0.4.3-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c8ec66e2e3fdd73750fa898d4c314e086cfabc0eced2a8542c552375b5c57e7 |
|
MD5 | abc2f36f6f1123576b2e0564d9079e24 |
|
BLAKE2b-256 | b36398f77249c7f360a9b40b9ac3f87cf5437f0710efce8632d66d163cc125fd |