Commit 904c242c authored by Francesco Poldi's avatar Francesco Poldi

Little fix for resume

parent ef6373ce
......@@ -58,6 +58,9 @@ class Twint:
if self.config.Debug:
print(response, file=open("twint-last-request.log", "w", encoding="utf-8"))
if self.config.Resume:
print(self.init, file=open(self.config.Resume, "w", encoding="utf-8"))
self.feed = []
try:
if self.config.Favorites:
......@@ -71,8 +74,6 @@ class Twint:
self.feed, self.init = feed.profile(response)
elif self.config.TwitterSearch:
self.feed, self.init = feed.Json(response)
if self.config.Resume:
print(self.init, file=open(self.config.Resume, "w", encoding="utf-8"))
break
except TimeoutError as e:
if self.config.Proxy_host.lower() == "tor":
......
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