Commit 8d511780 authored by Francesco Poldi's avatar Francesco Poldi

Added other print error

parent e74f1c53
......@@ -11,8 +11,8 @@ def Follow(response):
cursor = soup.find_all("div", "w-button-more")
try:
cursor = findall(r'cursor=(.*?)">', str(cursor))[0]
except:
pass
except Exception as e:
print(e)
return follow, cursor
......@@ -23,8 +23,8 @@ def Mobile(response):
max_id = soup.find_all("div", "w-button-more")
try:
max_id = findall(r'max_id=(.*?)">', str(max_id))[0]
except:
pass
except Exception as e:
print(e)
return tweets, max_id
......
......@@ -111,8 +111,8 @@ async def Tweet(url, config, conn):
location = soup.find("span", "ProfileHeaderCard-locationText u-dir").text
location = location[15:].replace("\n", " ")[:-10]
await Tweets(tweet, location, config, conn)
except:
pass
except Exception as e:
print(e)
async def User(url, config, conn):
#loggin.info("[<] " + str(datetime.now()) + ':: get+User')
......@@ -155,7 +155,7 @@ async def Multi(feed, config, conn):
config, conn)))
await asyncio.gather(*futures)
except:
pass
except Exception as e:
print(e)
return count
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