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

User lookup fix (#263)

* Fix json

* Added new data to meta

* Fix Target profile infos are scraped at each round

* Remove UserId()

* single user info

* clean comments

* clean
parent d62a506e
...@@ -2,7 +2,7 @@ from . import datelock, feed, get, output, verbose, storage ...@@ -2,7 +2,7 @@ from . import datelock, feed, get, output, verbose, storage
from asyncio import get_event_loop from asyncio import get_event_loop
from datetime import timedelta, datetime from datetime import timedelta, datetime
from .storage import db from .storage import db
import asyncio
#import logging #import logging
class Twint: class Twint:
...@@ -182,9 +182,7 @@ def Following(config): ...@@ -182,9 +182,7 @@ def Following(config):
def Lookup(config): def Lookup(config):
#logging.info("[<] " + str(datetime.now()) + ':: run+Lookup') #logging.info("[<] " + str(datetime.now()) + ':: run+Lookup')
url = f"http://twitter.com/{config.Username}?lang=en" url = f"http://twitter.com/{config.Username}?lang=en"
loop = asyncio.get_event_loop() get_event_loop().run_until_complete(get.User(url, config, db.Conn(config.Database)))
loop.run_until_complete(get.User(url, config, db.Conn(config.Database)))
loop.close()
def Profile(config): def Profile(config):
config.Profile = True config.Profile = True
......
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