зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 05:04:22 +02:00
Add bookmarkedCount field to Tweet model constructor
Этот коммит содержится в:
родитель
f572efcc8f
Коммит
6ad9c0eb3c
@ -101,6 +101,8 @@
|
||||
},
|
||||
"source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Tue May 16 09:49:50 +0000 2023",
|
||||
"conversation_id_str": "1658409412799737856",
|
||||
"display_text_range": [
|
||||
@ -236,6 +238,8 @@
|
||||
},
|
||||
"source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>",
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Tue May 16 09:41:01 +0000 2023",
|
||||
"conversation_id_str": "1658407192859492355",
|
||||
"display_text_range": [
|
||||
@ -709,6 +713,8 @@
|
||||
},
|
||||
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Thu Jul 06 19:22:59 +0000 2023",
|
||||
"conversation_id_str": "1676995076461821958",
|
||||
"display_text_range": [
|
||||
@ -758,6 +764,8 @@
|
||||
}
|
||||
},
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Thu Jul 06 19:32:52 +0000 2023",
|
||||
"conversation_id_str": "1677037919880507392",
|
||||
"display_text_range": [
|
||||
|
||||
@ -170,6 +170,8 @@
|
||||
},
|
||||
"source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>",
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Tue May 16 09:41:01 +0000 2023",
|
||||
"conversation_id_str": "1658407192859492355",
|
||||
"display_text_range": [
|
||||
@ -451,6 +453,8 @@
|
||||
}
|
||||
},
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Tue May 16 10:38:37 +0000 2023",
|
||||
"conversation_id_str": "1658421690001502208",
|
||||
"display_text_range": [
|
||||
@ -674,6 +678,8 @@
|
||||
},
|
||||
"source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Wed Jul 05 21:00:17 +0000 2023",
|
||||
"conversation_id_str": "1676697529461743622",
|
||||
"display_text_range": [
|
||||
@ -825,6 +831,8 @@
|
||||
}
|
||||
},
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Thu Jul 06 09:43:43 +0000 2023",
|
||||
"conversation_id_str": "1676889656225411072",
|
||||
"display_text_range": [
|
||||
|
||||
@ -100,6 +100,8 @@
|
||||
},
|
||||
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
|
||||
"legacy": {
|
||||
"bookmark_count": 3167,
|
||||
"bookmarked": false,
|
||||
"created_at": "Wed Jun 21 13:21:20 +0000 2023",
|
||||
"conversation_id_str": "1671508600538161153",
|
||||
"display_text_range": [0, 84],
|
||||
|
||||
@ -100,6 +100,8 @@
|
||||
},
|
||||
"source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
|
||||
"legacy": {
|
||||
"bookmark_count": 0,
|
||||
"bookmarked": false,
|
||||
"created_at": "Thu Jun 22 05:34:45 +0000 2023",
|
||||
"conversation_id_str": "1671753569412820992",
|
||||
"display_text_range": [0, 42],
|
||||
|
||||
@ -168,6 +168,7 @@ class Tweet(JSONTrait):
|
||||
retweetCount: int
|
||||
likeCount: int
|
||||
quoteCount: int
|
||||
bookmarkedCount: int
|
||||
conversationId: int
|
||||
conversationIdStr: str
|
||||
hashtags: list[str]
|
||||
@ -225,6 +226,7 @@ class Tweet(JSONTrait):
|
||||
retweetCount=obj["retweet_count"],
|
||||
likeCount=obj["favorite_count"],
|
||||
quoteCount=obj["quote_count"],
|
||||
bookmarkedCount=obj["bookmark_count"],
|
||||
conversationId=int(obj["conversation_id_str"]),
|
||||
conversationIdStr=obj["conversation_id_str"],
|
||||
hashtags=[x["text"] for x in get_or(obj, "entities.hashtags", [])],
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user