Skip to main content

API wraper for rule34.xxx

Reason this release was yanked:

Outdated

Project description

rule34Py Downloads

This is a Simple rule34.xxx API wraper.
Read the Documentation

Whats new?

I've rewritten and cleaned the code up. My goal is to ceep the code as clean as posible. I've also added new Object types, such as the "Post" Object. The new Versions (above 1.4.0) is not competible with older versions, do to masive changes.
You can finde the Changelog here.

Ideas

  • User search
    • Get user by its id (or maybe username)

Feel free to submit ideas

Installation

pip install rule34Py

Documentation

New Documentation for current version
Old Documentation (for version 1.3.38 and below!)

Code Snippet

from rule34Py import rule34Py

r34Py = rule34Py()

print(r34Py.version)

result_comments = r34Py.get_comments(4153825)
result_post = r34Py.get_post(4931536)
result_icame = r34Py.icame()
result_search = r34Py.search(["neko"], page_id=2, limit=50)
result_pool = r34Py.get_pool(17509) # or r34Py.get_pool(17509, false)
result_random = r34Py.random_post(["neko"]) # or r34Py.random_post()
result_tagmap = r34Py.tagmap()

print(result_random.id)
print(result_random.image)

print(result_icame[0].character_name) # returns the character name of the first item

print(result_tagmap[0].tagname)

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

rule34Py-1.4.4.tar.gz (21.5 kB view hashes)

Uploaded Source

Built Distribution

rule34Py-1.4.4-py3-none-any.whl (29.6 kB view hashes)

Uploaded Python 3

Supported by

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