diff options
Diffstat (limited to 'src/portal/py/tests')
| -rw-r--r-- | src/portal/py/tests/archive_query.py | 70 | ||||
| -rw-r--r-- | src/portal/py/tests/test.py | 19 |
2 files changed, 14 insertions, 75 deletions
diff --git a/src/portal/py/tests/archive_query.py b/src/portal/py/tests/archive_query.py index 9c4cf41..4cc1e1e 100644 --- a/src/portal/py/tests/archive_query.py +++ b/src/portal/py/tests/archive_query.py @@ -14,8 +14,9 @@ from tests.logger import Logger mode = 'pixiv_web' #mode = 'fanbox' #mode = 'patreon' -cmd = 'user' -#cmd = 'bookmarks' +#mode = 'instagram' +#cmd = 'user' +cmd = 'bookmarks' #cmd = 'search' module = ALL_MODULES[mode][0] if not module.init(): @@ -216,70 +217,9 @@ def download_args(): os.mkdir(f'{output_dir}/raw_responses') #args = module.search(f'following:{22781328}') - #args = [ - # '5838770', - # '44194940' - #] - # TODO: - #args = [ - # '68839843', - # '16105069', - # '67090304', - # '188984', - # '15041022', - # '3948', - # '2232374', - # '194668', - # '7835', - # '3067312', - # '59375709', - # '9077832', - # '199750', - # '5806160', - # '33726', - # '15261563', - # '7246', - # '8146', - # '40259810', - # '28865', - # '18362', - # '2750098', - # '2157729', - # '65523978', - # '154858', - # '37625681', - # '34642665', - # '24023', - # '3564336', - # '2658856', - # '990017', - # '55392960', - # '8967182', - # '8965979', - # '14305327', - # '469378', - # '8885157', - # '1107939', - # '18159122', - # '57304923', - # '6534119', - # '91521', - # '1074517', - # '14394', - # '46563991', - # '33694842', - # '84663', - # '4028970', - # '8876470', - # '1829995', - # '14113571', - # '56349311', - # '143555', - # '36388895', - # '14188490' - #] + # @TODO: + args = [] # twitter test: butcha_u, sep__rina, nagayori000, sattinittas, - threads = [] start = True diff --git a/src/portal/py/tests/test.py b/src/portal/py/tests/test.py index 2fe2eda..ef166d9 100644 --- a/src/portal/py/tests/test.py +++ b/src/portal/py/tests/test.py @@ -57,22 +57,21 @@ from twitter.scraper import Scraper # print('Skipping file') -module = ALL_MODULES['pixiv_web'][0] -module.init() -search = module.search('illust:91352621') -page = search.get_page(0) -for unique_id in page: - post = module.get_item(unique_id) - print(json.dumps(post, indent=4, cls=PostEncoder)) - -#module = ALL_MODULES['instagram'][0] +#module = ALL_MODULES['pixiv_web'][0] #module.init() -#search = module.search('plottttwistttttt') +#search = module.search('illust:91352621') #page = search.get_page(0) #for unique_id in page: # post = module.get_item(unique_id) # print(json.dumps(post, indent=4, cls=PostEncoder)) +module = ALL_MODULES['instagram'][0] +module.init() +search = module.search('plottttwistttttt') +page = search.get_page(0) +for unique_id in page: + post = module.get_item(unique_id) + print(json.dumps(post, indent=4, cls=PostEncoder)) #d = Date(DateType.EDITED, (0.0, 0.0), DateMeta.EDITED_AT_UNKNOWN_TIME) #d = Date(DateType.EDITED, (0.0, 0.0), DateMeta.NONE) |