Git Product home page Git Product logo

pixiv's Introduction

pixiv

a python project to fetch pixiv.net's image.

Usage

#-*- coding: utf-8 -*-
from pixiv import PixivApi

pixiv_id = YOUR_PIXIV_ACCOUNT
password = YOUR_PASSWORD

if __name__ == '__main__':
	api = PixivApi(pixiv_id, password)
	
	# get illust information
	print(api.illust(71403018))

	# get relate illust
	print(api.illust_related(71403018))

	# search
	print(len(api.search('宝多六花')))

	# download illust first image
	api.download(71403018)

	# download all illust image
	api.download_all(77337480)

	# get rank day_male_r18
	print(api.rank(male=True))

	# get rank day
	print(api.rank(r18=False))

	# get rank week_rookie
	print(api.rank(day='week', rookie=True))
	
	# get recommend illust
	print(api.recommended())

	# get current hot tags
	print(api.hot_tags())

	# get user information
	print(api.user(14095911))

	# get all user illust
	print(api.user_illusts(14095911))

	# get user bookmark
	print(api.user_bookmarks(14095911))
	
	# get user follow illust
	print(api.new_follow_illusts())

	# get illust infomation about whether bookmark
	print(api.bookmark_info(71403018))

	# get user bookmark tags
	print(api.bookmark_tags())

	# get user follwing
	print(api.user_following(14095911))

	# get user follower
	print(api.user_follower(14095911))

	# add and remove bookmark
	#print(api.add_bookmark(76642253))
	#print(api.delete_bookmark(76642253))
	
	api.close()

pixiv's People

Contributors

b09780978 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

wkigen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.