Skip to main content

Python 8chan/vichan API Wrapper. Based on BASC-py4chan by the Bbiliotheca Anonoma

Project description

The Bibliotheca Anonoma’s complete Python Wrapper for the 8chan 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 py8chan

Getting Help

If you want help, or you have some trouble using this library, put a issue on our Github Issue Tracker and we’ll respond as soon as we can!


Usage

import py8chan
board = py8chan.Board('v')
thread = board.get_thread(423491034)

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 slight but major differences. See the py8chan documentation for more info.

py8chan Documentation

The official 8chan Swagger API documentation can be found here.

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

py8chan-0.2.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

py8chan-0.2.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file py8chan-0.2.2.tar.gz.

File metadata

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

File hashes

Hashes for py8chan-0.2.2.tar.gz
Algorithm Hash digest
SHA256 76a58c66dd5879ccfecc1f74e0e4df7e140393f2aea4d7e0874c8a9b1f4f1420
MD5 81de7b4ddf90c9d4941846bb16a3e0b4
BLAKE2b-256 1ee70e6994abfabd0141ae122f95340a9d16274400f00efe8890facc2ccf164e

See more details on using hashes here.

File details

Details for the file py8chan-0.2.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for py8chan-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 45716b49b0d015ce646016d88bc89e2e2ac8fe9e78e0539fea4cc7df40c86c5b
MD5 0f1948a67b61d8504959c02429ace730
BLAKE2b-256 8f1b6326f080e72161196e05e0b703d1793a2d34f2bef43aba29ea523d6de2a5

See more details on using hashes here.

Supported by

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