upbit/pixivpy

r18排行榜问题

Closed this issue · 2 comments

    # 作品排行
    # mode: [day, week, month, day_male, day_female, week_original, week_rookie, day_manga]
    # date: '2016-08-01'
    # mode (Past): [day, week, month, day_male, day_female, week_original, week_rookie,
    #               day_r18, day_male_r18, day_female_r18, week_r18, week_r18g]
    def illust_ranking(
    ······

这里提到Past,是指现在已不再支持的意思吗?
现在传递mode='day_r18'返回的结果貌似是普通排行榜的
如果我要获取r18排行榜应该怎么操作?

upbit commented

从代码看没有调整过,day_r18没返回r18内容的话,建议检查下你的账号,是否在网页端开启过r18的开关
如果账号没有开开关,也会不返回r18内容

感谢回答,找到问题所在了。
在函数内部我又手动把mode赋值成了"day".......有被自己蠢到