Skip to content

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

Notifications You must be signed in to change notification settings

nvanadium/pydere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages