API wraper for rule34.xxx
Project description
rule34Py
![](https://pypi-camo.freetls.fastly.net/67245e4fbdf7d4a9adb972c55656cf55640b0d37/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f623379633064332f72756c6533345079)
This is a Simple rule34.xxx API wraper.
Read the Documentation
Whats new?
See Changelog for more informations.
Documentation
New Documentation for current version
Old Documentation (for version 1.3.38 and below!)
Ideas
Moved to TODO.md or/and see Issues.
Installation
pip install rule34Py
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()
# Stats
result_topTaggers = r34Py.stats.top_taggers()
result_topCommenters = r34Py.stats.top_commenters()
result_topForumPosters = r34Py.stats.top_forum_posters()
result_topImagePosters = r34Py.stats.top_image_posters()
result_topNoteEditors = r34Py.stats.top_note_editors()
result_topFavorites = r34Py.stats.top_favorites()
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)
Build it your self
foo@bar:~$ git clone git@github.com:b3yc0d3/rule34Py.git
foo@bar:~$ cd rule34Py
(on linux just run; ./build.sh)
foo@bar:~$ python setup.py bdist_wheel
foo@bar:~$ python setup.py sdist
foo@bar:~$ python setup.py bdist_wheel sdist
foo@bar:~$ pip install -e .
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(22.6 kB
view hashes)
Built Distribution
rule34Py-1.4.9-py3-none-any.whl
(24.2 kB
view hashes)