mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-12 04:18:29 +03:00
Fix Twitter trends not having a str representation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user