зеркало из
				https://github.com/viginum-datalab/twscrape.git
				synced 2025-10-30 05:26:20 +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: |         async with QueueClient(self.pool, queue, self.debug) as client: | ||||||
|             while active: |             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"): |                 if queue in ("SearchTimeline", "ListLatestTweetsTimeline"): | ||||||
|                     params["fieldToggles"] = {"withArticleRichContentState": False} |                     params["fieldToggles"] = {"withArticleRichContentState": False} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Загрузка…
	
	
			
			x
			
			
		
	
		Ссылка в новой задаче
	
	Block a user
	 Vlad Pronsky
						Vlad Pronsky