Commit 199bc39d authored by Francesco Poldi's avatar Francesco Poldi

Cleaned some code

parent ffa10c11
......@@ -50,7 +50,7 @@ class Twint:
if not os.path.exists(resumeFile):
return -1
with open(resumeFile, 'r') as rFile:
_init = rFile.readlines()[-1][:-1]
_init = rFile.readlines()[-1]
return _init
async def Feed(self):
......@@ -74,7 +74,7 @@ class Twint:
self.feed, self.init = feed.profile(response)
elif self.config.TwitterSearch:
self.feed, self.init = feed.Json(response)
print(self.init+'\n', file=open(self.config.Resume, "w", encoding="utf-8"))
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