Xwth / pydere

A simple python interface to the yande.re, danbooru and iqdb APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pydere

A simple python interface to the yande.re, danbooru and iqdb APIs.

Examples

Get some info on a post (Post and DanPost classes)

p = Post(i)  
print 'post:', i  
print '    artist:', p.artist  
print '    circle:', p.circle  
print '    source:', p.source  
print '    preview:', p.preview  

Search for an artist's name given an url e.g. from pixiv (Artist and DanArtist classes)

image_url = 'http://i1.pixiv.net/img83/img/luminocity/35089455_m.jpg'  
a = Artist(image_url)  
print a.name  

Search on danbooru for similar images using iqdb

i = IQDB(image_url)  
print i.similarity  
print i.match  

Get a direct image url and other info from pixiv

url = 'http://www.pixiv.net/member_illust.php?mode=medium&illust_id=36334142'  
p = Pixiv(session, url)  
print p.source  
print p.dimensions  
print p.profile
print p.name

Update the tags and source on yande.re

u = Update(session, token, post, tags=tags, source=source)  
u.update()  

About

A simple python interface to the yande.re, danbooru and iqdb APIs.


Languages

Language:Python 100.0%