module/ipinfo.py¶
module.ipinfo ¶
IPInfo
IPInfo ¶
Bases: Session
IPInfo
Parameters:
Name | Type | Description | Default |
---|---|---|---|
token |
str
|
IPInfo's API token. |
required |
Attributes:
Name | Type | Description |
---|---|---|
url |
str
|
|
token |
str
|
API token. |
Note
The headers
will update the Authorization
in Bearer {self.token}
.
Source code in module/ipinfo.py
get_info ¶
Get info
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ip_address |
str
|
IP address. |
required |
Returns:
Type | Description |
---|---|
Response
|
Return the requests.Response object. |