works : #print img.work print ( " %s " % ( img. ranking_all ( 'daily', 1, 50 ) print ( rank_list ) # more fields about response: ranking = rank_list. Print ( "> new ranking_all(mode='daily', page=1, per_page=50)" ) #rank_list = ("all", 'day', 1) rank_list = api. Change deprecated SPAI call to Public-API call. illust_ranking () for illust in json_result. Upgrade pixivpy >= v3.2.0: pip install pixivpy -upgradeĪapi = AppPixivAPI () json_result = aapi.next_url ) Sniffer - App API Sniffer - Public API (deprecated) Using API proxy behind the Great Wall See detail in Issue#73 illust_ranking ( ** next_qs ) for illust in json_result. medium )) # get all page: next_qs = while next_qs : json_result = api. medium )) # next page: 31-60 next_qs = api. illust_ranking ( 'day' ) for illust in json_result. image_urls ) # get ranking: 1-30 # mode: json_result = api. illust print ( "> origin url: %s " % illust. illust_detail ( 59580629 ) illust = json_result. Mikubill/PixivPy-Async: Async Pixiv API for Python 3Įxample: from pixivp圓 import * api = AppPixivAPI () # api.login("username", "password") # Not required # get origin url json_result = api.Sg -> Singapore, jp -> Japan, unit -> second Method Requirements: requests Mikubill/PixivPy-Async: Async Pixiv API for Python 3 New framework, SAPI / Public-API supported (requests needed).As Pixiv deprecated SAPI in recent days, push new Public-API ranking_all.Remove SPAI and release v3.0 (pixivp圓) (Public-API with Search API).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |