Skip to main content

Luminati proxy done easy

Project description

import luminati as lm

session=lm.session(‘{username}’,’{password}’)

r=session.get(’https://api.myip.com’)#returns usual request object

print(r.json())

#Every time uses different proxy

#Also chrome header is set by default to make your ban chances minimal

#but you still can parse from specific country if you want

session.get(’https://api.myip.com’,cc=”ru”)

#or set your own header

session.get(’https://api.myip.com’,headers={“User-Agent”:”Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)”})

#or timeout

session.get(’https://api.myip.com’,timeout=10)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luminati-0.1.28.tar.gz (6.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page