Releases: b3yc0d3/rule34Py
Releases · b3yc0d3/rule34Py
v4.0.2
v4.0.1
Version 4.0.0
Older versions of this library will no longer work, do to an REST Api change
This closes issue #35
Added
- Added a
rule34Py.autocompletemethod. - Added
AutocompleteTagclass. - Added parameter to
rule34Py.searchmethod for excluding ai generated content.- Added unit test
Changed
- Updated API wrapper to support website’s new authentication system.
- The underlying website API now requires authentication (
api_keyanduser_id) for all requests. - Updated unit tests.
Version 3.0.0
This version update is another big change in the API, there fore the major version changed.
We finally have a github page for our documentation, thanks to @ripariancommit .
Added
- Added captcha-compliance capabilities. You can now pass the client your captcha clearance token by completing the captcha in your browser, opening the response header, and writing your
cf_clearancetoken into the client'srule34Py.captcha_clearanceattribute and setting the client'suser_agentattribute to match your browser.- Alternatively, set your execution environment's
R34_CAPTCHA_CLEARANCEandR34_USER_AGENTvariables to the appropriate values. The client will read form them during initialization. - See this user guide for more information. (#24)
- Alternatively, set your execution environment's
- Added a rate limiter for requests to the rule34.xxx base site (the PHP endpoint). By default, the client will now limit API calls that use this endpoint to 1 per second.
- This behavior can be disabled by setting
rule34Py.set_base_site_rate_limit(False). - There is no rate limit on the api.rule34.xxx endpoint, which is assumed to handle rate-limiting on the server-side.
- This new feature requires the
requests-ratelimitermodule.
- This behavior can be disabled by setting
Changed
- Changed the behavior of the
rule34Py.random_post()method to function more like the website. The method now accepts notagparameters, and returns a random post ID from all posts on the site. Users who want to use the old behavior of returning a random post from the first 1000 tag-search results are directed to do something likerandom.choice(rule34Py.search([tags...])). - Changed the
rule34Py.get_pool()method to return aPoolobject containing more complete information about a Pool.- The Pool's post ids can be accessed via the
Pool.postsattribute.
- The Pool's post ids can be accessed via the
- Moved the
:examples/python recipes into tutorial documentation in the new sphinx documentation (:docs/tutorials). (#24)
Deprecated
- Deprecated support for python runtimes 3.5 to 3.8, as they are EOL. The minimum supported python version is now 3.9. (#27)