mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
4 lines
104 B
Python
4 lines
104 B
Python
from requests.packages import chardet
|
|
|
|
with open('test', 'rb') as f:
|
|
print(chardet.detect(f.read())) |