Skip to content

Commit

Permalink
Release pixivpy 3.2.0 with AppAPI supported (Experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
upbit committed Aug 6, 2016
1 parent 39a89b5 commit addb75e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ url.txt

# pypi
dist/
PixivPy.egg-info/
MANIFEST
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PixivPy [![Build Status](https://travis-ci.org/upbit/pixivpy.svg)](https://travi
_Pixiv API for Python (with Auth supported)_

* [2016/07/27] Now `AppPixivAPI()` can call **without auth** (thanks [zzycami](https://github.com/zzycami)), check [demo.py](https://github.com/upbit/pixivpy/blob/b83578e066ddcba86295676d931ff3313d138b22/demo.py#L268)
* [2016/07/20] New **App-API** (Experimental) for `PixivIOSApp/6.0.8`
* [2016/07/20] New **App-API** (Experimental) for `PixivIOSApp/6.0.9`
* [2016/07/11] Add new [iOS 6.x API](https://github.com/upbit/pixivpy/wiki#6x-api) reference to Wiki
* [2015/12/02] Add write API for favorite an user / illust, release v3.1
* [2015/08/11] Remove SPAI and release v3.0 (pixivpy3) (Public-API with Search API)
Expand Down Expand Up @@ -86,7 +86,7 @@ class AppPixivAPI(BasePixivAPI):
# 用户收藏作品列表 (无需登录)
def user_bookmarks_illust(self, user_id, restrict='public'):

# 作品排行
# 作品排行
# mode: [day, week, month, day_male, day_female, week_original, week_rookie, day_manga]
# date: '2016-08-01'
# mode(r18榜单需登录): [day_r18, day_male_r18, day_female_r18, week_r18, week_r18g]
Expand Down
8 changes: 4 additions & 4 deletions pixivpy3/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def auth(self, username=None, password=None, refresh_token=None):
headers = {
'App-OS': 'ios',
'App-OS-Version': '9.3.3',
'App-Version': '6.0.8',
'User-Agent': 'PixivIOSApp/6.0.8 (iOS 9.3.3; iPhone8,1)',
'App-Version': '6.0.9',
'User-Agent': 'PixivIOSApp/6.0.9 (iOS 9.3.3; iPhone8,1)',
}
data = {
'get_secure_url': 1,
Expand Down Expand Up @@ -397,8 +397,8 @@ def __init__(self, **requests_kwargs):
def no_auth_requests_call(self, method, url, headers={}, params=None, data=None, req_auth=False):
headers['App-OS'] = 'ios'
headers['App-OS-Version'] = '9.3.3'
headers['App-Version'] = '6.0.8'
headers['User-Agent'] = 'PixivIOSApp/6.0.8 (iOS 9.3.3; iPhone8,1)'
headers['App-Version'] = '6.0.9'
headers['User-Agent'] = 'PixivIOSApp/6.0.9 (iOS 9.3.3; iPhone8,1)'
if (not req_auth):
return self.requests_call(method, url, headers, params, data)
else:
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import re
from distutils.core import setup
try:
from setuptools import setup
except ImportError:
from distutils.core import setup

requires = ['requests']

Expand All @@ -13,7 +16,7 @@
name='PixivPy',
packages=['pixivpy3'],
version=version,
description='Pixiv API for Python',
description='Pixiv API for Python (with 6.x AppAPI supported)',
author='upbit',
author_email='[email protected]',
install_requires=requires,
Expand Down

0 comments on commit addb75e

Please sign in to comment.