MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / get_ip

Method get_ip

botasaurus/ip_utils.py:115–125  ·  view source on GitHub ↗

Finds the IP address of the current connection. Example: 47.31.226.180

(proxy=None)

Source from the content-addressed store, hash-verified

113class IPUtils:
114 @staticmethod
115 def get_ip(proxy=None):
116 """
117 Finds the IP address of the current connection.
118
119 Example: 47.31.226.180
120 """
121 ip = _find_ip(proxy=proxy)
122 while ip is None:
123 print("Failed to get IP. Retrying...")
124 ip = _find_ip(proxy=proxy)
125 return ip
126
127 @staticmethod
128 def get_ip_info(proxy=None):

Callers

nothing calls this directly

Calls 1

_find_ipFunction · 0.85

Tested by

no test coverage detected