Commit fbe2da02 authored by Francesco Poldi's avatar Francesco Poldi Committed by GitHub

Update get.py (#179)

Resolving issue #178, think it needs to await Request
parent 8ba5baaf
......@@ -49,7 +49,7 @@ async def Response(session, url):
async def Username(_id):
url = f"https://twitter.com/intent/user?user_id={_id}&lang=en"
r = Request(url)
r = await Request(url)
soup = BeautifulSoup(r, "html.parser")
return soup.find("a", "fn url alternate-context")["href"].replace("/", "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment