Wrapper for the official 4chan JSON API
pychan | ||
.gitignore | ||
main.py | ||
README.md | ||
requirements.txt |
pychan
Python package for interacting with the 4chan JSON API.
Usage
from pychan.api import ChanAPI
api = ChanAPI()
# Get list of boards
boards = api.get_boards()
# Get catalog pages for a board
pol_catalog = api.get_catalog('po')
# Get high level stats for threads on a board
pol_threads = api.get_threads('po')
# Get a thread by thread number
thread = api.get_thread('po', 570368)
Notes
Object classes such as Board, Thread, and Post are in development and can be imported from pychan/models.py.