mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-15 08:47:08 +00:00
Merge pull request #8 from ronaldseoh/enforce-encoding
enforce utf-8 encoding when we open data.json
This commit is contained in:
commit
52d1c09c21
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def main():
|
|||
|
||||
|
||||
print("\033[1;92m[\033[0m\033[1;77m*\033[0m\033[1;92m] Checking username\033[0m\033[1;37m {}\033[0m\033[1;92m on: \033[0m".format(username))
|
||||
raw = open("data.json", "r")
|
||||
raw = open("data.json", "r", encoding="utf-8")
|
||||
data = json.load(raw)
|
||||
|
||||
# User agent is needed because some sites does not
|
||||
|
|
Loading…
Reference in a new issue