Commit 773e5c68 authored by Francesco Poldi's avatar Francesco Poldi

Added other print error

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