mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add back search
This commit is contained in:
parent
b290f6fd29
commit
67203a431d
7 changed files with 78 additions and 37 deletions
|
|
@ -41,9 +41,9 @@ proc getPoolJson*(): JsonNode =
|
|||
let
|
||||
maxReqs =
|
||||
case api
|
||||
of Api.timeline: 180
|
||||
of Api.timeline, Api.search: 180
|
||||
of Api.userTweets, Api.userTweetsAndReplies, Api.userRestId,
|
||||
Api.userScreenName, Api.tweetDetail, Api.tweetResult, Api.search: 500
|
||||
Api.userScreenName, Api.tweetDetail, Api.tweetResult: 500
|
||||
of Api.list, Api.listTweets, Api.listMembers, Api.listBySlug, Api.userMedia: 500
|
||||
of Api.userSearch: 900
|
||||
reqs = maxReqs - token.apis[api].remaining
|
||||
|
|
|
|||
Loading…
Reference in a new issue