J
Jeronimo
Нашёл на форуме код для пробива
Мне выдаёт в консоли такое:
Python:
import urllib.request
import json
phone = input("Enter phone: ")
getInfo = "https://htmlweb.ru/geo/api.php?json&telcod=" + phone
try:
infoPhone = urllib.request.urlopen( getInfo )
except:
print( "\n[!] - Phone not found - [!]\n" )
infoPhone = json.load( infoPhone )
print( u"Number --->", "+" + phone )
print( u"Country --->", infoPhone["country"]["name"] )
print( u"Region --->", infoPhone["region"]["name"] )
print( u"Okrug --->", infoPhone["region"]["okrug"] )
print( u"Operator --->", infoPhone1"0"]["oper"] )
print( u"World --->", infoPhone["country"]["location"] )
Если знаете что это такое - помогите, паожалуйстаTraceBack: (most recent call last):
File "..\number.py", line 15, <module>
infoPhone = json.load( infoPhone )
File "C:\\Python34\lib\json\__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs-hook=object_pairs-hook, **kw)
File "....\__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: The JSON object must be str not 'bytes']