postlight / parser

📜 Extract meaningful content from the chaos of a web page
https://reader.postlight.com
Apache License 2.0
5.4k stars 442 forks source link

Won't extract the title of page in browser beside first time #632

Closed SettingDust closed 1 year ago

SettingDust commented 2 years ago

Expected Behavior

Parse the page and extract title

Current Behavior

The title won't extract as title say

Steps to Reproduce

A tampermonkey script for testing

window.onload = () => {
  setInterval(() => Mercury.parse().then(result => console.log(`[Test] ${result.title}`)), 5000)
}
      1. 4.

Detailed Description

The outputs

Possible Solution

Sorry, It's too deep for me. :(

mtashley commented 1 year ago

I've tested this use case with a delay between calls and each time the title is fetched properly. Closing this issue, please let us know if the problem persists.