Commit 81cd90fd authored by Francesco Poldi's avatar Francesco Poldi

Fix --profile-full and --retweets

parent aecd4321
...@@ -110,6 +110,7 @@ def initialize(args): ...@@ -110,6 +110,7 @@ def initialize(args):
c.Proxy_port = args.proxy_port c.Proxy_port = args.proxy_port
c.Proxy_type = args.proxy_type c.Proxy_type = args.proxy_type
c.ES_count = {"likes":True, "replies":True, "retweets":True} c.ES_count = {"likes":True, "replies":True, "retweets":True}
c.Retweets = args.retweets
return c return c
def options(): def options():
......
...@@ -55,3 +55,4 @@ class Config: ...@@ -55,3 +55,4 @@ class Config:
Proxy_host = None Proxy_host = None
Proxy_port = 0 Proxy_port = 0
Proxy_type = None Proxy_type = None
Retweets = None
...@@ -10,6 +10,9 @@ class Twint: ...@@ -10,6 +10,9 @@ class Twint:
#logging.info("[<] " + str(datetime.now()) + ':: run+Twint+__init__') #logging.info("[<] " + str(datetime.now()) + ':: run+Twint+__init__')
if config.Resume is not None and config.TwitterSearch: if config.Resume is not None and config.TwitterSearch:
self.init = f"TWEET-{config.Resume}-0" self.init = f"TWEET-{config.Resume}-0"
else:
if config.Profile_full | config.Retweets:
self.init = -1
else: else:
self.init = "-1" self.init = "-1"
self.feed = [-1] self.feed = [-1]
......
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