123456789101112131415161718 |
- import requests
- import json
- import os
- from results_output_JSON import df_to_json_records, write_to_json_results, write_to_json_searches, read_from_json, filename_results, filename_searches, path
- url = 'http://127.0.0.1:5000/simple_get_query'
- searches = read_from_json(os.path.join(path, filename_searches))
- for search in searches:
- dto = {
- "queryList": [search]
- }
- x = requests.post(url, json = dto)
- print(x.text)
|