diff --git a/scrapers/Coomer/Coomer.py b/scrapers/Coomer/Coomer.py index 38569071f..dee7b3be0 100644 --- a/scrapers/Coomer/Coomer.py +++ b/scrapers/Coomer/Coomer.py @@ -5,6 +5,7 @@ import requests import re from bs4 import BeautifulSoup as bs +import io # TODO: Enable searching from other fields? @@ -18,6 +19,7 @@ def debugPrint(t): # Get JSON from Stash def readJSONInput(): + sys.stdin = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8') input = sys.stdin.read() return json.loads(input)