Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 600 Bytes

config.md

File metadata and controls

37 lines (25 loc) · 600 Bytes

Configuration

Importing

from metathreads import config

Example - Config Usage

from metathreads import MetaThreads
from metathreads import config

config.PROXY = {"http":"127.0.0.1","https":"127.0.0.1"}
config.TIMEOUT = 10

threads = MetaThreads()
threads.login("username","password")

print(threads.get_user('zuck'))

Request Timeout

# request timeout - in seconds
config.TIMEOUT = 5

Using Proxies

# Example {"http":"proxy_here","https":"proxy_here"} Accepts python dictionary.
config.PROXY = None