{"repo":"extractus/article-extractor","free":true,"listed":false,"github":"https://github.com/extractus/article-extractor","clone":"git clone https://github.com/extractus/article-extractor.git","description":"To extract article from given URL","language":"TypeScript","stars":1904,"topics":["nodejs","article-parser","readability","article","article-extractor","crawler","extract","scraper"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"@extractus/article-extractor Extract main article, main image and meta data from URL. Install Deno Node.js / Bun Alternatively, install from npm: Usage APIs - extract() - extractFromHtml() - Transformations - Transformation object - addTransformations() - removeTransformations() - Priority order - Content sanitization options --- extract() Load and extract article data from a URL or HTML string. Syntax Example: The result can be null (when no article found) or an ArticleData object: Parameters input required URL string or raw HTML content. parserOptions optional Property Type Default Description --- --- --- --- wordsPerMinute number 300 Words per minute for time-to-read estimation descriptionTruncateLen number 210 Max characters for generated description descriptionLengthThreshold number 180 Min characters to keep meta description contentLengthThreshold number 200 Min characters for article content allowedTags string[] (semantic/content tags) HTML tags to keep in output allowedAttributes Record (src, href, alt, etc.) Per-tag attributes to keep allowedIframeDomains string[] (youtube, vimeo, etc.) Allowed domains for iframe src fetcher optional A custom fetch function with the signature (url: string) = Promise . Use this to customize HTTP behavior: proxy, headers, TLS, authentication, timeouts, etc. Defaults to globalThis.fetch . Deno (with proxy): Node.js (with proxy via undici): Bun (with proxy): Custom headers : Request timeout : --- extractFromHtml() Extract article data fr","default_branch":null,"files":null,"tree":[],"storefront":"/r/extractus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/extractus/article-extractor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}