fix: Throttle Metaculus requests.
This commit is contained in:
parent
b3678df9cd
commit
682ea25615
|
@ -79,7 +79,7 @@ export async function metaculus() {
|
||||||
(result.publish_time < now) &&
|
(result.publish_time < now) &&
|
||||||
(now < result.resolve_time)
|
(now < result.resolve_time)
|
||||||
) {
|
) {
|
||||||
await sleep(2000)
|
await sleep(5000)
|
||||||
let questionPage = await fetchMetaculusQuestionDescription(result.page_url)
|
let questionPage = await fetchMetaculusQuestionDescription(result.page_url)
|
||||||
let descriptionraw = questionPage.split(`<div class="content" ng-bind-html-compile="qctrl.question.description_html">`)[1] //.split(`<div class="question__content">`)[1]
|
let descriptionraw = questionPage.split(`<div class="content" ng-bind-html-compile="qctrl.question.description_html">`)[1] //.split(`<div class="question__content">`)[1]
|
||||||
let descriptionprocessed1 = descriptionraw.split("</div>")[0]
|
let descriptionprocessed1 = descriptionraw.split("</div>")[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user