parser
parser copied to clipboard
📜 Extract meaningful content from the chaos of a web page
Here is a custom parser for [HackerNews](https://news.ycombinator.com) that will extract the main post and its comments
Hi everyone, recently we discovered an issue in our system because some urls were parsed without www and thefeore an extractor for that source wasn't used. In this case we...
I use the parser in a vue-cli project and I tried updating from @postlight/mercury-parser 2.2.1 to @postlight/parser 2.2.3. When I run my project, I get the following error. ``` ERROR...
## Expected Behavior `Mercury.parse(url, { contentType: 'text\html' }).then(result => console.log(result) );` ### Output:- `{... ,contant: {text:"this is sample text",html:"this is sample text"}` ## Current Behavior `Mercury.parse(url, { contentType: 'text' }).then(result...
## Expected Behavior After I use the Postlight Reader Extension, I expect all links in the cleaned article to be functional. ## Current Behavior In the cleaned document (presented by...
# #731 _Replaces Moment with [DayJS](https://day.js.org/en/), a 2kb library with an almost identical API._ **Note:** - DayJS doesn't ship with an equivalent to Moment's `parseFormat` method used [here](https://github.com/postlight/parser/compare/fix-remove-moment-js?expand=1#diff-a4fa99c1acfa6daa5f70d6971cb29bfcf7bbfd1120d16841bd0b1b8616a3f365L43). I'm not...
This PR updates two scripts, `update-fixtures.js` and `generate-custom-parser.js`, to take into account the new fixture structure implemented in #713. @johnholdun was responsible for most of the code changes -- I...
We're hitting file limits in the bundled extension size for Postlight Reader, and I'm pretty sure it's due to the size of this dependency. Right now we can't ship new...
A user emailed us about an issue. I haven't verified this yet, but I'm logging it here so we can investigate it: > Hi, I have being using Mercury Reader...
Cannot install postlight parser with npm on my computer: ``` npm install @postlight/parser npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -4058...