pegar o IP de um determinado site, coletar dados de um determinado IP.
Project description
escrutinar_jp
Descrição.
O pacote escrutinar é usado para:
- Pegar o endereço de IP de um site requisitado
--exemplo 1
from escrutinar_jp import escrutinar
print(escrutinar.pegaripsite("github.com"))
- Saber os dados de um IP, que será gerado no formato json
-sondarip('' -> str, mostrar_flag=False -> bool)
se não colocar nada no parâmetro será retornado seu ip
-- exemplo 2
from escrutinar_jp import escrutinar
print(escrutinar.sondarip("8.8.8.8"))
saida -->>
{
'ip': '8.8.8.8',
'success': True,
'type': 'IPv4',
'continent': 'North America',
'continent_code': 'NA',
'country': 'United States',
'country_code': 'US',
'region': 'California',
'region_code': 'CA',
'city': 'Mountain View',
'latitude': 37.3860517,
'longitude': -122.0838511,
'is_eu': False,
'postal': '94039',
'calling_code': '1',
'capital': 'Washington D.C.',
'borders': 'CA,MX',
'connection': {
'asn': 15169,
'org': 'Google LLC',
'isp': 'Google LLC',
'domain': 'google.com'
},
'timezone': {
'id': 'America/Los_Angeles',
'abbr': 'PST',
'is_dst': False,
'offset': -28800,
'utc': '-08:00',
'current_time': '2022-12-10T16:48:07-08:00'
}
}
-- exemplo 3
from escrutinar_jp import escrutinar
print(escrutinar.sondarip("8.8.8.8", mostrar_flag=True))
saida -->>
{
'ip': '8.8.8.8',
'success': True,
'type': 'IPv4',
'continent': 'North America',
'continent_code': 'NA',
'country': 'United States',
'country_code': 'US',
'region': 'California',
'region_code': 'CA',
'city': 'Mountain View',
'latitude': 37.3860517,
'longitude': -122.0838511,
'is_eu': False,
'postal': '94039',
'calling_code': '1',
'capital': 'Washington D.C.',
'borders': 'CA,MX',
'flag': {
'img': 'https://cdn.ipwhois.io/flags/us.svg',
'emoji': '🇺🇸',
'emoji_unicode': 'U+1F1FA U+1F1F8'
},
'connection': {
'asn': 15169,
'org': 'Google LLC',
'isp': 'Google LLC',
'domain': 'google.com'
},
'timezone': {
'id': 'America/Los_Angeles',
'abbr': 'PST',
'is_dst': False,
'offset': -28800,
'utc': '-08:00',
'current_time': '2022-12-10T16:54:32-08:00'
}
}
Instalação
Use o gerenciador de pacote pip para instalar escrutinar_jp
pip install escrutinar_jp
Uso
from escrutinar_jp import escrutinar
escrutinar.pediripsite()
escrutinar.sondarip()
Author
Jorge Paulo
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
escrutinar_jp-0.0.1.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file escrutinar_jp-0.0.1.tar.gz.
File metadata
- Download URL: escrutinar_jp-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7703d1968d3a7822ec82e09e014c204f47124c0f332dd12c5dbda972ba0ded07
|
|
| MD5 |
b369d049b3acffee738e23be8ebb61a9
|
|
| BLAKE2b-256 |
9ac4ec5689825e0d679bab9257451cb6e70d4587c3f5316c42dea2acf99e1907
|
File details
Details for the file escrutinar_jp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: escrutinar_jp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fd980b27a9ed5d914929ab39c70be2597c2d7bc04b3b56b8592b3ebfa54fa70
|
|
| MD5 |
3c19ecf8417a63d1a77a422bc392f55a
|
|
| BLAKE2b-256 |
496e69df8a9fcb4e2140bd722b3a2fdf97a9bf01b32347fc09892c828c06da7c
|