Twint: [REQUEST] proxy support

Created on 3 May 2018  路  6Comments  路  Source: twintproject/twint

Love your library, works without any problems for me.

Is it possible to use this with a proxy? Or could you add proxy support?

enhancement

Most helpful comment

import twint

c = twint.Config()
c.Username = "user1"
c.Proxy_host = "127.0.0.1"
c.Proxy_port = 9050
c.Proxy_type = "socks5"

twint.run.Search(c)

All 6 comments

Sounds good to me, I can add it.

I also added a shortcut for Tor, just use --proxy-host tor instead of --proxy-host localhost --proxy-port 9050 --proxy-type socks5. For custom proxies you will have to specify host, port and type

While using proxies the connection speed might slow down

If this fits needs I think that we can close

Sorry but I need proxy for the "module". As it seems, it has not.

import twint

c = twint.Config()
c.Username = "user1"
c.Proxy_host = "127.0.0.1"
c.Proxy_port = 9050
c.Proxy_type = "socks5"

twint.run.Search(c)

This method doesn't work after that update of the new API.

Was this page helpful?
0 / 5 - 0 ratings