I have a code which posts HTTP request sequentially for all the tuples in a list and append the response to another list.
import requests
url = 'https://www....'
input_list = [(1,2),(6,4),(7,8)]
output_list = []
for i in input_list:
resp = (requests.post('url',data = i[1]).text,i[0])
output_list.append(resp)
print(output_list)
Can someone please help me with the directions to make the HTTP requests in parallel ?