Skip to main content

import luminati as lm

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

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

print(r.json())

>> {‘ip’: ‘89.185.77.245’, ‘country’: ‘Romania’, ‘cc’: ‘RO’}

#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”).text

>> {“ip”:”84.22.150.132”,”country”:”Russian Federation”,”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)”}).text

>> {“ip”:”178.173.228.210”,”country”:”Australia”,”cc”:”AU”}

#or timeout

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

#TODO Change UserAgent every time just like it happens with countries of origin

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.36.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file luminati-0.1.36.tar.gz.

File metadata

  • Download URL: luminati-0.1.36.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for luminati-0.1.36.tar.gz
Algorithm Hash digest
SHA256 1f29ef13362161bddc81ec46d2f5a1c1f7a8d16245aaa4d1094920787666213a
MD5 712d860accee42cf1c3e677d847cc6b3
BLAKE2b-256 1419883092f7e73102bb5b4d547ae03247d8d637402f4c232d15d8118050600e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.36 This release

1 file

0.1.35

1 file

0.1.34

1 file

0.1.33

1 file

0.1.32

1 file

0.1.31

1 file

0.1.30

1 file

0.1.29

1 file

0.1.28

1 file

0.1.27

1 file

0.1.26

1 file

0.1.25

1 file

0.1.24

1 file

0.1.23

1 file

0.1.22

1 file

0.1.21

1 file

0.1.20

1 file

0.1.19

1 file

0.1.18

1 file

0.1.17

1 file

0.1.16

1 file

0.1.15

1 file

0.1.14

1 file

0.1.13

1 file

0.1.12

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page