forked from Nandaka/PixivUtil2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PixivConstant.py
38 lines (32 loc) · 1.02 KB
/
PixivConstant.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: UTF-8 -*-
# pylint: disable=I0011, C, C0302
PIXIVUTIL_VERSION = '20180726'
PIXIVUTIL_LINK = 'https://github.com/Nandaka/PixivUtil2/releases'
PIXIVUTIL_DONATE = 'https://bit.ly/PixivUtilDonation'
PIXIV_URL = 'https://www.pixiv.net'
PIXIV_URL_SSL = 'https://www.pixiv.net/login.php'
PIXIV_CSS_LIST_ID = 'display_works'
PIXIV_CSS_PROFILE_NAME_CLASS = 'f18b'
PIXIV_CSS_IMAGE_TITLE_CLASS = 'works_data'
PIXIV_CSS_TAGS_ID = 'tags'
PIXIVUTIL_MODE_UPDATE_ONLY = '1'
# Login Settings
PIXIVUTIL_MODE_OVERWRITE = '2'
PIXIV_LOGIN_URL = '/login.php'
PIXIV_FORM_NUMBER = 1
PIXIV_FORM_NUMBER_SSL = 1
# Log Settings
PIXIVUTIL_LOG_FILE = 'pixivutil.log'
PIXIVUTIL_LOG_SIZE = 10485760
PIXIVUTIL_LOG_COUNT = 10
PIXIVUTIL_LOG_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
# Download Results
PIXIVUTIL_NOT_OK = -1
PIXIVUTIL_OK = 0
PIXIVUTIL_SKIP_OLDER = 1
PIXIVUTIL_SKIP_BLACKLIST = 2
PIXIVUTIL_KEYBOARD_INTERRUPT = 3
PIXIVUTIL_SKIP_DUPLICATE = 4
PIXIVUTIL_SKIP_LOCAL_LARGER = 5
PIXIVUTIL_ABORTED = 9999
BUFFER_SIZE = 8192