mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Parse user stats as ints, not strings, cleanup
This commit is contained in:
parent
54330f0b0c
commit
fcfc1ef497
6 changed files with 18 additions and 19 deletions
|
|
@ -14,11 +14,11 @@ proc parseProfile(js: JsonNode; id=""): Profile =
|
|||
bio: js{"description"}.getStr,
|
||||
userPic: js{"profile_image_url_https"}.getImageStr.replace("_normal", ""),
|
||||
banner: js.getBanner,
|
||||
following: $js{"friends_count"}.getInt,
|
||||
followers: $js{"followers_count"}.getInt,
|
||||
tweets: $js{"statuses_count"}.getInt,
|
||||
likes: $js{"favourites_count"}.getInt,
|
||||
media: $js{"media_count"}.getInt,
|
||||
following: js{"friends_count"}.getInt,
|
||||
followers: js{"followers_count"}.getInt,
|
||||
tweets: js{"statuses_count"}.getInt,
|
||||
likes: js{"favourites_count"}.getInt,
|
||||
media: js{"media_count"}.getInt,
|
||||
verified: js{"verified"}.getBool,
|
||||
protected: js{"protected"}.getBool,
|
||||
joinDate: js{"created_at"}.getTime
|
||||
|
|
|
|||
Loading…
Reference in a new issue