Article Extractor
The Article Extractor pulls the main article out of a web page with the Readability library, the method browsers use for their reading view. It removes menus, sidebars, ads and footers. It can then ask an AI model to clean the article further and, if you want, rewrite it.
Input and output
- Input:
url(the page is downloaded) orhtml. - Output:
extracted_article(the article HTML),title(the article title) andsummary(the first sentences, up to about 300 characters).
If no article is found, the item is stopped and not saved.
AI options
| Option | What it does |
|---|---|
| Use AI Enhancement | Send the extracted article to an AI model for clean-up. On by default. With No, only Readability is used |
| AI Preset | The AI preset to use |
| Elements to Remove | What the AI should take out: header image, inline images, author block, publication date, ads, related articles, share buttons, comments, newsletter forms, navigation, breadcrumbs, table of contents, sidebar, footer, audio and video |
| Additional Elements to Remove | Anything else, in your own words, such as "disclaimer boxes, cookie notices" |
| Spin Content | Also rewrite the article in new words |
| Spin Intensity | Light (20-30% changed), Moderate (50-60%) or Heavy (80-90%) |
If the AI call fails, or no preset is chosen, the Readability result is used.
Content options
| Option | What it does |
|---|---|
| Remove Links | Remove all links, keep their text |
| Remove Images | Remove all images |
| Remove Styles | Remove inline and embedded styles. On by default |
| Remove Scripts | Remove scripts. On by default |
| Fix Relative URLs | Make links and image addresses absolute. On by default |
| Keep CSS Classes | Keep the class attributes |
| Substitute Entities, Normalize Entities | Turn HTML entities into characters, or the other way round |
| Advanced Content Processing | Show Normalize Content, Extract Article Structure and Highlight Keywords |
The Extract All Metadata and single Extract ... options (author, site name, images, videos, structured data and so on) don't add output fields in the current version: only extracted_article, title and summary can be mapped. For meta data use Get Meta.
Example
- Add Article Extractor with
[oe] linkas input and Use AI Enhancement set to No. - Map its
titleto the article title,summaryto the intro text andextracted_articleto the full text.
Add Get Images on extracted_article to save the pictures on your server.
Debugging
Add &pdebug=1 to the Manual Post or preview URL to see each step of the extraction.