I am running Prawler to get proxies.
I installed this with the instructions given on GitHub. It works fine too, but I would like to add a choice option in it.
To get a proxies, I use this following code:
import Prawler;
Prawler.get_proxy_txt("proxy_list.txt", 50, "http", "elite")'
I would like this to ask me which type of proxy I need. For example, the expected output:
Choose Proxy type,
option 1 - http
option 2 - socks4
option 3 - socks5
choose one option from above >
If I type 1 and press enter, it replaces the proxy type to http
If I type 2 and press enter, it replaces the proxy type to socks4
If I type 3 and press enter, it replaces the proxy type to socks5
In my main code:
for http option,
import Prawler;
Prawler.get_proxy_txt("proxy_list.txt", 50, "http", "elite")'
for socks4 option,
import Prawler;
Prawler.get_proxy_txt("proxy_list.txt", 50, "socks4", "elite")'
for socks5 option,
import Prawler;
Prawler.get_proxy_txt("proxy_list.txt", 50, "socks5", "elite")'
I don't know how to make it ask for my choice option here in Python. I am new to python. Kindly help me to proceed further.