зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 13:06:13 +02:00
feat: ability to pass starting cursor #16
Этот коммит содержится в:
родитель
9238398b3c
Коммит
3710d2605f
@ -51,7 +51,9 @@ class API:
|
||||
|
||||
async with QueueClient(self.pool, queue, self.debug) as client:
|
||||
while active:
|
||||
params = {"variables": {**kv, "cursor": cursor}, "features": ft}
|
||||
params = {"variables": kv, "features": ft}
|
||||
if cursor is not None:
|
||||
params["variables"]["cursor"] = cursor
|
||||
if queue in ("SearchTimeline", "ListLatestTweetsTimeline"):
|
||||
params["fieldToggles"] = {"withArticleRichContentState": False}
|
||||
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user