Commit 41fd78fe authored by Francesco Poldi's avatar Francesco Poldi

Just a little space was breaking stuff #326

parent 27e3ac67
...@@ -125,7 +125,7 @@ class Twint: ...@@ -125,7 +125,7 @@ class Twint:
#if self.config.Username is not None: #if self.config.Username is not None:
# url = f"http://twitter.com/{self.config.Username}?lang=en" # url = f"http://twitter.com/{self.config.Username}?lang=en"
# self.config.User_id = await get.User(url, self.config, self.conn, True) # self.config.User_id = await get.User(url, self.config, self.conn, True)
# TODO: fix the bug # TODO: keep this or not!?
if self.config.TwitterSearch and self.config.Since and self.config.Until: if self.config.TwitterSearch and self.config.Since and self.config.Until:
_days = timedelta(days=int(self.config.Timedelta)) _days = timedelta(days=int(self.config.Timedelta))
......
...@@ -6,7 +6,7 @@ class user: ...@@ -6,7 +6,7 @@ class user:
def inf(ur, _type): def inf(ur, _type):
try: try:
group = ur.find("div", "user-actions btn-group not-following ") group = ur.find("div", "user-actions btn-group not-following")
if group == None : if group == None :
group = ur.find("div", "user-actions btn-group not-following protected") group = ur.find("div", "user-actions btn-group not-following protected")
except Exception as e: except Exception as e:
...@@ -125,4 +125,4 @@ def User(ur): ...@@ -125,4 +125,4 @@ def User(ur):
u.is_verified = verified(ur) u.is_verified = verified(ur)
u.avatar = ur.find("img", "ProfileAvatar-image")["src"] u.avatar = ur.find("img", "ProfileAvatar-image")["src"]
u.background_image = ur.find('div',{'class':'ProfileCanopy-headerBg'}).find('img').get('src') u.background_image = ur.find('div',{'class':'ProfileCanopy-headerBg'}).find('img').get('src')
return u return u
\ No newline at end of file
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