Commit 240f5a52 authored by Francesco Poldi's avatar Francesco Poldi

Removed get location from user card

parent 87107964
......@@ -183,10 +183,8 @@ async def Tweet(url, config, conn):
try:
response = await Request(url)
soup = BeautifulSoup(response, "html.parser")
location = soup.find("span", "ProfileHeaderCard-locationText u-dir").text
location = location[15:].replace("\n", " ")[:-10]
tweets = soup.find_all("div", "tweet")
await Tweets(tweets, location, config, conn, url)
await Tweets(tweets, config, conn, url)
except Exception as e:
logme.critical(__name__+':Tweet:' + str(e))
......
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