Commit bc5c9279 authored by Francesco Poldi's avatar Francesco Poldi

Fixed errors with user_full

parent dd2250f4
...@@ -120,8 +120,8 @@ async def User(url, config, conn): ...@@ -120,8 +120,8 @@ async def User(url, config, conn):
response = await Request(url) response = await Request(url)
soup = BeautifulSoup(response, "html.parser") soup = BeautifulSoup(response, "html.parser")
await Users(soup, config, conn) await Users(soup, config, conn)
except: except Exception as e:
pass print(e)
def Limit(Limit, count): def Limit(Limit, count):
#loggin.info("[<] " + str(datetime.now()) + ':: get+Limit') #loggin.info("[<] " + str(datetime.now()) + ':: get+Limit')
......
...@@ -38,11 +38,17 @@ def is_tweet(tw): ...@@ -38,11 +38,17 @@ def is_tweet(tw):
def _output(obj, output, config, **extra): def _output(obj, output, config, **extra):
#logging.info("[<] " + str(datetime.now()) + ':: output+_output') #logging.info("[<] " + str(datetime.now()) + ':: output+_output')
if config.Lowercase: if config.Lowercase:
obj.username = obj.username.lower() if isinstance(obj, str):
for i in range(len(obj.mentions)): obj = obj.lower()
obj.mentions[i] = obj.mentions[i].lower() elif str(type(obj)).split()[0] == "<class":
for i in range(len(obj.hashtags)): pass
obj.hashtags[i] = obj.hashtags[i].lower() else:
print(type(obj))
obj.username = obj.username.lower()
for i in range(len(obj.mentions)):
obj.mentions[i] = obj.mentions[i].lower()
for i in range(len(obj.hashtags)):
obj.hashtags[i] = obj.hashtags[i].lower()
if config.Output != None: if config.Output != None:
if config.Store_csv: if config.Store_csv:
try : try :
......
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