diff --git a/handyhelper/__init__.py b/handyhelper/__init__.py index 5800279..9dd35d0 100644 --- a/handyhelper/__init__.py +++ b/handyhelper/__init__.py @@ -7,7 +7,11 @@ import os import requests as req from bs4 import BeautifulSoup as soup import pdftotext +import sys +def eprint(*args, **kwargs): + print(*args, file=sys.stderr, **kwargs) + bot = commands.Bot() async def search(txt): @@ -30,7 +34,7 @@ async def search(txt): } async def getPDF(url): - print(f"Fetching PDF: {url}") + eprint(f"Fetching PDF: {url}") resp = req.get(url, stream=True) pdf = io.BytesIO(resp.content) pages = pdftotext.PDF(pdf)