Skip to content

Commit 1657d40

Browse files
authored
Merge pull request #666 from rmcn15/master
Add Social Data for China Telegram Card
2 parents 7363b70 + 60b0316 commit 1657d40

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

logic/scripts/fetch_social_stats.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ def get_discord_members():
136136
"json": False,
137137
}
138138
)
139+
sites.append(
140+
{
141+
"name": "Telegram (China)",
142+
"url": "https://t.me/OriginChinese",
143+
"selector": "div.tgme_page_extra",
144+
"pattern": "([\d\s]+)\s*members",
145+
"json": False,
146+
}
147+
)
139148
sites.append(
140149
{
141150
"name": "Telegram (Announcements)",

logic/views/social_stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def filter_social_stats(stat):
2525
"Telegram (Russia)",
2626
"Telegram (Spanish)",
2727
"Telegram (Turkish)",
28+
"Telegram (China)",
2829
"Medium",
2930
]
3031
if stat["name"] in general_stats:

0 commit comments

Comments
 (0)