M
M
Matvey8992021-08-31 18:51:06
Multithreading
Matvey899, 2021-08-31 18:51:06

How to create multithreaded post requests?

It is necessary to make multi-threaded post requests. For example, a person sends lines like this: dkdkd39fkk9493dx: 93dkdk3939: fkfk484fkff: dkd4848 Maybe one or many. It is necessary that one line be selected from this array, a post request is sent (already ready) and the line is deleted until the lines run out. Please tell me how to implement this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
link_vrb, 2021-09-03
@link_vrb

from requests import *
from threading import Thread
def posst():
[tab here]string='your string'
[tab here]newstring=string.split['separator']
[tab here]for i in newstring: #i is an element separated line
[here tab][here tab]here is your post request
if I understood you correctly then here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question