
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
readability-extended
Advanced tools
Turn any web page into a clean view. This module is based on arc90's readability project.
article
, section
) and Microdata API.$ npm install readability-extended
read(html [, options], callback)
Where
callback(error, article, meta)
Example
var read = require('node-readability');
read('http://howtonode.org/really-simple-file-uploads', function(err, article, meta) {
// Main Article
console.log(article.content);
// Title
console.log(article.title);
//uri
console.log(article.uri);
//lead_image_url
console.log(article.lead_image_url);
//excerpt
console.log(article.excerpt);
//redirection -- boolean tells redirection is happening or not
console.log(article.redirection);
//Author
console.log(article.byline);
//canonical_url
console.log(article.canononicalUrl);
// meta tags
console.log(article.metaData);
//document - jsdom object
console.log(article.articleContent);
// Response Object from Request Lib
console.log(meta);
});
read('http://howtonode.org/really-simple-file-uploads', function(err, article, meta) {
if(:werr){
console.log(err);
if(err.status >= 400 && err.status < 511){
console.log("Page not found");
}
}
});
NB If the page has been marked with charset other than utf-8, it will be converted automatically. Charsets such as GBK, GB2312 is also supported.
The article content of the web page. Return false
if failed.
The article title of the web page. It's may not same to the text in the <title>
tag.
The article uri of the web page.
The article main image of web page. Pick from meta tag og:image.
The article expert of web page.
boolean tells redirection is happening or not.
The article author of web page.
response object from request lib. If you need to get current url after all redirect or get some headers it can be useful.
FAQs
Turning any web page into a clean view.
The npm package readability-extended receives a total of 2 weekly downloads. As such, readability-extended popularity was classified as not popular.
We found that readability-extended demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.