![Smart Article Extractor avatar](https://images.apifyusercontent.com/J5RsZUKmn7WJygid41poe1zigNJGsgDMWh35ZpSznBg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9oeTVUWWlDQndROW84dVJLRy9DRDIyeHVTNXg0V3N3REdBbi10eXBlLWFydGljbGUucG5n.webp)
Smart Article Extractor
Try for free
No credit card required
View all Actors![Smart Article Extractor](https://images.apifyusercontent.com/J5RsZUKmn7WJygid41poe1zigNJGsgDMWh35ZpSznBg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9oeTVUWWlDQndROW84dVJLRy9DRDIyeHVTNXg0V3N3REdBbi10eXBlLWFydGljbGUucG5n.webp)
![Smart Article Extractor](https://images.apifyusercontent.com/J5RsZUKmn7WJygid41poe1zigNJGsgDMWh35ZpSznBg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9oeTVUWWlDQndROW84dVJLRy9DRDIyeHVTNXg0V3N3REdBbi10eXBlLWFydGljbGUucG5n.webp)
Smart Article Extractor
lukaskrivka/article-extractor-smart
Try for free
No credit card required
📰 Smart Article Extractor extracts articles from any scientific, academic, or news website with just one click. The extractor crawls the whole website and automatically distinguishes articles from other web pages. Download your data as HTML table, JSON, Excel, RSS feed, and more.
Do you want to learn more about this Actor?
Get a demoThe code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "startUrls": [
8 {
9 "url": "https://www.theguardian.com"
10 }
11 ],
12 "isUrlArticleDefinition": {
13 "minDashes": 4,
14 "hasDate": true,
15 "linkIncludes": [
16 "article",
17 "storyid",
18 "?p=",
19 "id=",
20 "/fpss/track",
21 ".html",
22 "/content/"
23 ]
24 },
25 "proxyConfiguration": {
26 "useApifyProxy": true
27 },
28 "extendOutputFunction": "($) => {\n const result = {};\n // Uncomment to add a title to the output\n // result.pageTitle = $('title').text().trim();\n\n return result;\n}"
29}
30EOF
31
32# Run the Actor using an HTTP API
33# See the full API reference at https://docs.apify.com/api/v2
34curl "https://api.apify.com/v2/acts/lukaskrivka~article-extractor-smart/runs?token=$API_TOKEN" \
35 -X POST \
36 -d @input.json \
37 -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
- 203 monthly users
- 54 stars
- 99.9% runs succeeded
- 1.4 days response time
- Created in Nov 2019
- Modified about 1 month ago