Skip to main content

A well featured wrapper for e621.net

Project description

E621 python wrapper

Install here: https://pypi.org/project/e621-wrapper/ or use: pip install e621-wrapper

Get started:

First import the library and create a e621 client

import e621_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

e621py_wrapper-0.1.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

e621py_wrapper-0.1.1-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page