Skip to main content

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._

Hosted Documentation

Github Repository

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.

py8chan Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvichan-0.4.4.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvichan-0.4.4-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pyvichan-0.4.4.tar.gz.

File metadata

  • Download URL: pyvichan-0.4.4.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for pyvichan-0.4.4.tar.gz
Algorithm Hash digest
SHA256 87ff1b456ba2c8379ad26982bd5060d88bddb692de87598181017114357efabc
MD5 4883b8530d1f0eb746924f22d92ea8b0
BLAKE2b-256 9b46f4bc93b19a709b6900bacba5cc79903e95a5e13278fe7f3dc7e3fddfa1f7

See more details on using hashes here.

File details

Details for the file pyvichan-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: pyvichan-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for pyvichan-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9a0a515a29f3afbe8456df99ac4d992f88a275763a788030543a8974634aa7
MD5 cb6cf21e7fd45274268b9bf5c9db3d73
BLAKE2b-256 507fec9cb036286a13f4554a404e12c7c2a434f4dc20ebc744e1c97f2a6d2622

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page