A well featured wrapper for e621.net
Project description
E621 python wrapper
Install here: https://pypi.org/project/e621py-wrapper/ or use: pip install e621py-wrapper
Get started:
First import the library and create a e621 client
import e621py_wrapper as e621
client = e621.client()
Now lets login, some api calls will require logging in
client.login("username", "apikey")
Full docs
Posts
Search
This function searches for posts matching the input tags
Usage
client.posts.search(tags, blacklist, limit, page, ignorepage)
Tags is the input tags eg: "wickerbeast rating:e" if more than 1 tag is input sepereate the tags by a space
Blacklist is the same as tags but the wrapper will ignore these tags eg: rating:e will get rid of explicit results
Limit the ammount of posts returned if Limit is -1 unlimited posts are returned
Page page number to start at unless ignorepage is equal to False in which case it will only get posts from the input page
The only required data to passed into the function id tags
Example
client.posts.search("wickerbeast", "rating:e", 1, 1, False)
(All example returns are going to be in paset bin because they are big)
This would return: https://pastebin.com/zPsSrufT
Get
This function gets posts from their id
Usage
client.posts.get(id)
Id the id of a post eg: 3061292 You can get post id's from the search function
Example
client.posts.get(3061292)
This would return: https://pastebin.com/xEuw4ND9
Pools
Search
This function searches for pools whose titles contain a search query
Usage
client.pools.search(query, limit)
Query search for pools containing the query string
limit limits the ammount of results -1 allows all results
Example
client.pools.search("dragon", 10)
This would return: https://pastebin.com/9a9QehQ7
Get
This function searches for pools whose titles contain a search query
Usage
client.pools.get(id)
Id the id of the pool, can be obtained from the pools.search function
Example
client.pools.get(20198)
This would return: https://pastebin.com/8WQrBcvX
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
Built Distribution
Hashes for e621py_wrapper-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 604a36984fdcee9575fb4882c4730661755c2c5d8249a371de16b854180ad009 |
|
MD5 | 0d9e8c74ba3eff60f5c0f65ac3d6420f |
|
BLAKE2b-256 | ebe9cdb9c367dc6813de68be430995219bd76c17e4d28789b5cc855153fc353b |