Exception in Tkinter callback
Traceback (most recent call last):
File “C:\Users\tuncaypc\AppData\Local\Programs\Python\Python36-32\lib\tkinter_init_.py”, line 1699, in call
return self.func(*args)
File “C:/Users/tuncaypc/PycharmProjects/Python/C#.py”, line 9, in Url
r = requests.get(html)
File “C:\Users\tuncaypc\PycharmProjects\Python\venv\lib\site-packages\requests\api.py”, line 76, in get
return request(‘get’, url, params=params, **kwargs)
File “C:\Users\tuncaypc\PycharmProjects\Python\venv\lib\site-packages\requests\api.py”, line 61, in request
return session.request(method=method, url=url, **kwargs)
File “C:\Users\tuncaypc\PycharmProjects\Python\venv\lib\site-packages\requests\sessions.py”, line 516, in request
prep = self.prepare_request(req)
File “C:\Users\tuncaypc\PycharmProjects\Python\venv\lib\site-packages\requests\sessions.py”, line 459, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File “C:\Users\tuncaypc\PycharmProjects\Python\venv\lib\site-packages\requests\models.py”, line 314, in prepare
self.prepare_url(url, params)
File “C:\Users\tuncaypc\PycharmProjects\Python\venv\lib\site-packages\requests\models.py”, line 388, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL ‘.!label2’: No schema supplied. Perhaps you meant http://.!label2?
@dildeolupbiten gösteriğiniz şekilde yaptım fakat print(COrba) komutunu çalıştırdığımda şu şekilde çıktı veriyor =[]
Ama sayfa html kodunu print etmesi gerekiyor onu çözemedim
bu sefer
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 32895-32901: character maps to