API wraper for rule34.xxx
Reason this release was yanked:
Outdated
Project description
rule34Py
This is a Simple rule34.xxx API wraper.
Installation
pip install rule34Py
Code Snippet:
from rule34Py import rule34Py
r34Py = rule34Py()
results = r34Py.search(['neko'], 10)
favs = r34Py.getFavorites(118538, true)
comments = r34Py.getComments(4485507)
post = r34Py.getPost(4485507)
icameList = r34Py.iCameList()
print(results)
print(favs)
print(comments)
print(post)
print(icameList)
Usage
rule34Py
Syntax: r34Py = rule34Py()
Creates a new rule34Py instance.
getComments
Syntax: <rule34Py>.getCommanets(<post_id>)
post_id
<int>- returns: <list>[<dictionary>]
dictionary
>{"id": <INT>, "creator_id": <INT>, "created_at": <STR>, "creator": {"name": <STR>, "id": <INT>}, "content": <STR>}
Get Comments from a Post.
getFavorites
Syntax: <rule34Py>.getFavorites(<user_id>, <?id_only>)
user_id
<int>id_only
<boolean> (Optional, Defaults is false)- returns: <list>[<dictionary>]
dictionary
>{"id": <INT>, "score": <INT>, "rating": <STR>, "creator_id": <INT>, "created_at": <STR>, "source": <STR>, "has_notes": <BOOL>, "tags": <LIST>[<STR>], "img_sample_url": <STR>, "img_file_url": <STR>, "img_preview_url": <STR>, "has_children": <BOOL>, "parent_id": <INT>, "has_comments": <BOOL>}
Gets Favorites from a User.
getPost
Syntax: <rule34Py>.getPost(<post_id>)
post_id
<int>- returns: <dictionary>
dictionary
>{"id": <INT>, "score": <INT>, "rating": <STR>, "creator_id": <INT>, "created_at": <STR>, "source": <STR>, "has_notes": <BOOL>, "tags": <LIST>[<STR>], "img_sample_url": <STR>, "img_file_url": <STR>, "img_preview_url": <STR>, "has_children": <BOOL>, "parent_id": <INT>, "has_comments": <BOOL>}
Gets Post by ID.
search
Syntax: <rule34Py>.search([<tags>], <?page_id>, <?limit>)
tags
<list> (Tag Cheatsheet)page_id
<int>limit
<int> (Optional, Defaults is 100 and max limit is 100)- returns: <list>[<int>, ..<dictionary>]
"<POST_COUNT>"
<int> [only first item of list]dictionary
>{"id": <INT>, "score": <INT>, "rating": <STR>, "creator_id": <INT>, "created_at": <STR>, "source": <STR>, "has_notes": <BOOL>, "tags": <LIST>, "img_sample_url": <STR>, "img_file_url": <STR>, "img_preview_url": <STR>}
iCameList
Syntax: <rule34Py>.iCameList()
- returns: <list>[<dictionary>]
dictionary
>{"tag": <STR>, "icame_count": <INT>, "tag_url": <STR>}
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.2.10.tar.gz
(16.9 kB
view hashes)
Built Distribution
rule34Py-1.2.10-py3-none-any.whl
(17.0 kB
view hashes)
Close
Hashes for rule34Py-1.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12700dd9e473737b242bc71a1106d93643c764694b621782e67a041c21c91327 |
|
MD5 | 353a98c8ef1f93978a28aa58b915f93b |
|
BLAKE2b-256 | 6f9b63851490a0de130c08bb7b58b908721b0bde2d66530b0847e786f3ba63af |