rule34py

GPL-3.0

Python API wrapper for rule34.xxx.

Installation

rule34Py is available directly from the Python Package Index and can be installed via pip.

pip install rule34Py

Or you can build it from source using this project. See the Developer Guide for more information.

Quickstart

from rule34Py import rule34Py
r34Py = rule34Py()

# Get comments of an post.
r34Py.get_comments(4153825)

# Get post by its id.
r34Py.get_post(4153825)

# Get top 100 icame.
r34Py.icame()

# Search for posts by tag(s).
r34Py.search(["neko"], page_id=2, limit=50)

# Get pool by id.
r34Py.get_pool(28)

# Get a random post.
random = r34Py.random_post()

# Get just a random post ID.
random_id = r34Py.random_post_id()

Documentation

This project has extensive documentation, hosted on the upstream Github Pages. It includes additional Tutorials, User Guides, API Documentation, and more.

See the Contributing Guide for information about how to contribute to this project and file bugs.