Update scheduler & collector
This commit is contained in:
parent
66c3cc2154
commit
14fb17b334
1 changed files with 3 additions and 4 deletions
|
|
@ -156,7 +156,8 @@ class TwitterClient(PostClient):
|
||||||
|
|
||||||
|
|
||||||
class TwitterCollector(PostCollector):
|
class TwitterCollector(PostCollector):
|
||||||
pass
|
builder = TwitterBuilder
|
||||||
|
client = TwitterClient
|
||||||
|
|
||||||
|
|
||||||
# see https://developer.twitter.com/en/docs/twitter-api/v1/rate-limits
|
# see https://developer.twitter.com/en/docs/twitter-api/v1/rate-limits
|
||||||
|
|
@ -182,9 +183,7 @@ class TwitterTimeLineScheduler(Scheduler):
|
||||||
return self.timelines[:max_amount] if max_amount else []
|
return self.timelines[:max_amount] if max_amount else []
|
||||||
|
|
||||||
def get_current_ratelimit(self):
|
def get_current_ratelimit(self):
|
||||||
endpoint = (
|
endpoint = "application/rate_limit_status.json?resources=statuses"
|
||||||
"application/rate_limit_status.json?resources=help,users,search,statuses"
|
|
||||||
)
|
|
||||||
|
|
||||||
# TODO add appropriate authentication (OAuth 1.0a) headers
|
# TODO add appropriate authentication (OAuth 1.0a) headers
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue