Commit dc290687 authored by Francesco Poldi's avatar Francesco Poldi

Cleaned some code

parent a229bd9f
...@@ -50,7 +50,7 @@ class Twint: ...@@ -50,7 +50,7 @@ class Twint:
if not os.path.exists(resumeFile): if not os.path.exists(resumeFile):
return -1 return -1
with open(resumeFile, 'r') as rFile: with open(resumeFile, 'r') as rFile:
_init = rFile.readlines()[-1][:-1] _init = rFile.readlines()[-1]
return _init return _init
async def Feed(self): async def Feed(self):
...@@ -74,7 +74,7 @@ class Twint: ...@@ -74,7 +74,7 @@ class Twint:
self.feed, self.init = feed.profile(response) self.feed, self.init = feed.profile(response)
elif self.config.TwitterSearch: elif self.config.TwitterSearch:
self.feed, self.init = feed.Json(response) 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 break
except TimeoutError as e: except TimeoutError as e:
if self.config.Proxy_host.lower() == "tor": 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