<reponame>The-Earth/bilibili-rate<gh_stars>1-10
"""Bilibili API列表"""

# APPKEY = '12737ff7776f1ade'
APPKEY = '<KEY>'

# CID_DANMAKU.format(cid)
CID_DANMAKU = 'http://comment.bilibili.com/{0}.xml'
# CID_DANMAKU_HIS.format(cid)
CID_DANMAKU_HIS = 'http://comment.bilibili.com/rolldate,{0}'
# CID_HISDANMAKU.format(timestamp, cid)
CID_HISDANMAKU = 'http://comment.bilibili.com/dmroll,{0},{1}'

# {'aid': aid}
API_PAGELIST = 'http://www.bilibili.com/widget/getPageList?'

# {'mid': mid, 'pagesize': pagesize, 'tid': tid, 'page': page}
API_SUBMITVIDEOS = 'http://space.bilibili.com/ajax/member/getSubmitVideos?'

# {'type': 'json', 'appkey': APPKEY, 'id': aid} & cookies needed
API_VIDEOSTATUS = 'http://api.bilibili.com/view?'

# {'mid': mid} {'Referer': 'http://space.bilibili.com/{mid}/'} POST method
API_SPACE = 'http://space.bilibili.com/ajax/member/GetInfo'

# {'jsonp': jsonp, 'type': 1, 'sort': 0, 'oid': oid, 'pn': page, 'nohot': 1}
API_REPLY = 'http://api.bilibili.com/x/v2/reply?'

# {'aid': aid, 'jsonp': 'jsonp'}
API_TAG = 'http://api.bilibili.com/x/tag/archive/tags?'
# {'id': tid, 'jsonp': 'jsonp'}
API_TAGINFO = 'http://api.bilibili.com/tags/info_description?'
# {'aid': aid, 'tag_id': tagid, 'jsonp': 'jsonp'} POST method & cookies needed
API_TAGDEL = 'http://api.bilibili.com/x/tag/archive/del'
# {'aid': aid, 'tag_name': tagname, 'jsonp': 'jsonp'} POST method & cookies needed
API_TAGADD = 'http://api.bilibili.com/x/tag/archive/add'

HEADERS = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\
     (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36',
    'Cookie': 'SESSDATA=; \
    LIVE_BUVID=; \
    LIVE_BUVID__ckMd5=; \
    DedeUserID=; \
    DedeUserID__ckMd5='
}

PROXIES = {
    'http': 'socks5://127.0.0.1:1080',
    'https': 'socks5://127.0.0.1:1080'
}

"""Bilibili API列表"""

# APPKEY = '12737ff7776f1ade'
APPKEY = '<KEY>'

# CID_DANMAKU.format(cid)
CID_DANMAKU = 'http://comment.bilibili.com/{0}.xml'
# CID_DANMAKU_HIS.format(cid)
CID_DANMAKU_HIS = 'http://comment.bilibili.com/rolldate,{0}'
# CID_HISDANMAKU.format(timestamp, cid)
CID_HISDANMAKU = 'http://comment.bilibili.com/dmroll,{0},{1}'

# {'aid': aid}
API_PAGELIST = 'http://www.bilibili.com/widget/getPageList?'

# {'mid': mid, 'pagesize': pagesize, 'tid': tid, 'page': page}
API_SUBMITVIDEOS = 'http://space.bilibili.com/ajax/member/getSubmitVideos?'

# {'type': 'json', 'appkey': APPKEY, 'id': aid} & cookies needed
API_VIDEOSTATUS = 'http://api.bilibili.com/view?'

# {'mid': mid} {'Referer': 'http://space.bilibili.com/{mid}/'} POST method
API_SPACE = 'http://space.bilibili.com/ajax/member/GetInfo'

# {'jsonp': jsonp, 'type': 1, 'sort': 0, 'oid': oid, 'pn': page, 'nohot': 1}
API_REPLY = 'http://api.bilibili.com/x/v2/reply?'

# {'aid': aid, 'jsonp': 'jsonp'}
API_TAG = 'http://api.bilibili.com/x/tag/archive/tags?'
# {'id': tid, 'jsonp': 'jsonp'}
API_TAGINFO = 'http://api.bilibili.com/tags/info_description?'
# {'aid': aid, 'tag_id': tagid, 'jsonp': 'jsonp'} POST method & cookies needed
API_TAGDEL = 'http://api.bilibili.com/x/tag/archive/del'
# {'aid': aid, 'tag_name': tagname, 'jsonp': 'jsonp'} POST method & cookies needed
API_TAGADD = 'http://api.bilibili.com/x/tag/archive/add'

HEADERS = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\
     (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36',
    'Cookie': 'SESSDATA=; \
    LIVE_BUVID=; \
    LIVE_BUVID__ckMd5=; \
    DedeUserID=; \
    DedeUserID__ckMd5='
}

PROXIES = {
    'http': 'socks5://127.0.0.1:1080',
    'https': 'socks5://127.0.0.1:1080'
}
Bilibili API列表 # APPKEY = '12737ff7776f1ade' # CID_DANMAKU.format(cid) # CID_DANMAKU_HIS.format(cid) # CID_HISDANMAKU.format(timestamp, cid) # {'aid': aid} # {'mid': mid, 'pagesize': pagesize, 'tid': tid, 'page': page} # {'type': 'json', 'appkey': APPKEY, 'id': aid} & cookies needed # {'mid': mid} {'Referer': 'http://space.bilibili.com/{mid}/'} POST method # {'jsonp': jsonp, 'type': 1, 'sort': 0, 'oid': oid, 'pn': page, 'nohot': 1} # {'aid': aid, 'jsonp': 'jsonp'} # {'id': tid, 'jsonp': 'jsonp'} # {'aid': aid, 'tag_id': tagid, 'jsonp': 'jsonp'} POST method & cookies needed # {'aid': aid, 'tag_name': tagname, 'jsonp': 'jsonp'} POST method & cookies needed