Skip to content

Commit

Permalink
fix(parse-page-paragraphs): restore dostart modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfBarkow committed Feb 22, 2024
1 parent 901940a commit bfcbc9f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pages/parse-page-paragraphs/speed-bot.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@

try {
while (Date.now() < done) {
let remain = Math.ceil((done - Date.now())/1000)
let links = visit(pick.page).filter(title => !seen.has(title))
let remain = Math.ceil((done - Date.now())/1000);
let paragraphs = pick.page.story.filter(item => item.type === 'paragraph');
console.log('Paragraphs: ', paragraphs);
for (let paragraph of paragraphs) {
let links = visit(pick.page).filter(title => !seen.has(title))
if (links.length) {
let link = any(links)
seen.add(link)
Expand All @@ -134,7 +137,7 @@
pick = any(all) // can't find new link on page
}
}
}
}}
catch(err) {
window.result.innerHTML += `
${err.message}
Expand Down

0 comments on commit bfcbc9f

Please sign in to comment.