mirror of
https://github.com/bellingcat/polyphemus.git
synced 2026-06-11 04:48:32 +03:00
added capability to generate auth_token
This commit is contained in:
@@ -20,11 +20,12 @@ from polyphemus import api
|
||||
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
|
||||
|
||||
KWARGS_LIST = [
|
||||
('get_auth_token', []),
|
||||
('get_channel_info', ['channel_name']),
|
||||
('get_subscribers', ['channel_id']),
|
||||
('get_subscribers', ['channel_id', 'auth_token']),
|
||||
('get_all_videos', ['channel_id']),
|
||||
('get_views', ['video_id']),
|
||||
('get_video_reactions', ['video_id']),
|
||||
('get_views', ['video_id', 'auth_token']),
|
||||
('get_video_reactions', ['video_id', 'auth_token']),
|
||||
('get_all_comments', ['video_id']),
|
||||
('append_comment_reactions', ['comment_info_list']),
|
||||
('normalized_name_to_video_info', ['normalized_name']),
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from polyphemus.api import get_auth_token
|
||||
|
||||
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
|
||||
|
||||
CHANNEL_NAME = 'Mak1nBacon'
|
||||
@@ -90,7 +92,8 @@ def resources():
|
||||
canonical_url = CANONICAL_URL,
|
||||
full_video_info = FULL_VIDEO_INFO,
|
||||
full_comment_info = {**COMMENT_INFO_LIST[0], **{'likes' : 8, 'dislikes' : 0}},
|
||||
comment_info_list = COMMENT_INFO_LIST)
|
||||
comment_info_list = COMMENT_INFO_LIST,
|
||||
auth_token = get_auth_token())
|
||||
|
||||
return resources_dict
|
||||
|
||||
|
||||
Reference in New Issue
Block a user