rule34Py.api_urls

A module containing URL templates for the rule34.xxx websites.

class rule34Py.api_urls.API_URLS(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

rule34.xxx API endpoint URLs.

Internal class used to change easily urls, if they should ever change.

AUTOCOMPLETE = 'https://api.rule34.xxx/autocomplete.php?q={q}'

The tags autocomplete URL

COMMENTS = 'https://api.rule34.xxx/index.php?page=dapi&s=comment&q=index&post_id={POST_ID}'

The XML Post comments endpoint.

GET_POST = 'https://api.rule34.xxx/index.php?page=dapi&s=post&q=index&id={POST_ID}&json=1'

The JSON Post endpoint.

ICAME = 'https://rule34.xxx/index.php?page=icame'

The HTML ICAME page URL.

POOL = 'https://rule34.xxx/index.php?page=pool&s=show&id={POOL_ID}'

An HTML Pool URL.

RANDOM_POST = 'https://rule34.xxx/index.php?page=post&s=random'

The HTML Random post URL.

SEARCH = 'https://api.rule34.xxx/index.php?page=dapi&s=post&q=index&limit={LIMIT}&tags={TAGS}&json=1'

The JSON search endpoint.

TOPMAP = 'https://rule34.xxx/index.php?page=toptags'

The HTML toptags URL.

USER_FAVORITES = 'https://api.rule34.xxx/index.php?page=favorites&s=view&id={USR_ID}'

An HTML User favorites endpoint.

USER_PAGE = 'https://api.rule34.xxx/index.php?page=account&s=profile&id={USER_ID}'

An HTML User profile URL.