Skip to content

Commit 024d4e7

Browse files
author
Hao Zhou
committed
feat: Add illust_new for #189, bump version to v3.6.1
1 parent a55c6a9 commit 024d4e7

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,21 @@ class AppPixivAPI(BasePixivAPI):
235235

236236
# 获取ugoira信息
237237
def ugoira_metadata(self, illust_id):
238+
239+
# 用户小说列表
240+
def user_novels(self, user_id, filter='for_ios', offset=None):
241+
242+
# 小说系列详情
243+
def novel_series(self, series_id, filter='for_ios', last_order=None):
244+
245+
# 小说详情
246+
def novel_detail(self, novel_id):
247+
248+
# 小说正文
249+
def novel_text(self, novel_id):
250+
251+
# 大家的新作 [illust, manga]
252+
def illust_new(self, content_type="illust", filter='for_ios', max_illust_id=None):
238253
~~~
239254

240255
[Usage](https://github.com/upbit/pixivpy/blob/master/demo.py#L42):

pixivpy3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Pixiv API library
33
"""
4-
__version__ = '3.6.0'
4+
__version__ = '3.6.1'
55

66
from .papi import PixivAPI
77
from .aapi import AppPixivAPI

pixivpy3/aapi.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,17 @@ def novel_text(self, novel_id, req_auth=True):
507507
r = self.no_auth_requests_call('GET', url, params=params, req_auth=req_auth)
508508
return self.parse_result(r)
509509

510+
# 大家的新作
511+
## content_type: [illust, manga]
512+
def illust_new(self, content_type="illust", filter='for_ios', max_illust_id=None, req_auth=True):
513+
url = '%s/v1/illust/new' % self.hosts
514+
params = {
515+
'content_type': content_type,
516+
'filter': filter,
517+
}
518+
r = self.no_auth_requests_call('GET', url, params=params, req_auth=req_auth)
519+
return self.parse_result(r)
520+
510521
# 特辑详情 (无需登录,调用Web API)
511522
def showcase_article(self, showcase_id):
512523
url = 'https://www.pixiv.net/ajax/showcase/article'

0 commit comments

Comments
 (0)