S
S
S1NYA2021-08-20 11:36:49
Python
S1NYA, 2021-08-20 11:36:49

How to take each time a new proxy from a text document?

I have a text document, how can I take 1 line from it with a proxy and take a new proxy each time?
That is, let's say I have a proxy 111.11.1:80 and there is 222.22.2:80. The script has already used the proxy 111.11.1:80 from the text document, and now it needs to take 222.22.2:80 already, and so on ad infinitum. (each time - a new proxy)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aab137, 2021-08-20
@aab137

file.readline(n)read the nth line in the file. accordingly, you need to change n, either as a counter, or randomly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question