Fix Twitter trends not having a str representation

This commit is contained in:
JustAnotherArchivist
2021-09-21 21:40:50 +00:00
parent e5f4389464
commit e382891642

View File

@@ -160,6 +160,9 @@ class Trend(snscrape.base.Item):
domainContext: str
metaDescription: typing.Optional[str] = None
def __str__(self):
return f'https://twitter.com/search?q={urllib.parse.quote(self.name)}'
class ScrollDirection(enum.Enum):
TOP = enum.auto()