mirror of https://github.com/zedeus/nitter
notes: use userRestId api token pool
This commit is contained in:
parent
4de795bd36
commit
5bcce76bd5
|
@ -55,7 +55,7 @@ proc getGraphArticle*(id: string): Future[Article] {.async.} =
|
|||
let
|
||||
variables = %*{"twitterArticleId": id}
|
||||
url = graphArticle ? {"variables": $variables}
|
||||
result = parseGraphArticle(await fetch(url, Api.article))
|
||||
result = parseGraphArticle(await fetch(url, Api.userRestId))
|
||||
|
||||
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
|
||||
if id.len == 0: return
|
||||
|
|
|
@ -20,7 +20,6 @@ type
|
|||
userRestId
|
||||
userScreenName
|
||||
status
|
||||
article
|
||||
|
||||
RateLimit* = object
|
||||
remaining*: int
|
||||
|
|
Loading…
Reference in New Issue