Newsweek Scraper

3 days trial then $20.00/month - No credit card required now

Newsweek Scraper

Newsweek Scraper

epctex/newsweek-scraper

3 days trial then $20.00/month - No credit card required now

Scrape the latest articles right away from Newsweek. Retrieve your news directly with the information of title, body, published time, updated time, keywords, images, videos, and many more! Get your data with JSON, XML, Excel, CSV, or many other options. Extremely fast, optimized, and with no limits!

The 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 mode

# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare Actor input
cat > input.json <<'EOF'
{
  "startUrls": [
    "https://www.newsweek.com/ron-desantis-abortion-six-week-bill-2024-1794367",
    "https://www.newsweek.com/topic/climate-change",
    "https://www.newsweek.com/authors/jon-jackson",
    "https://www.newsweek.com/search/site/?q=biden",
    "https://www.newsweek.com/education"
  ],
  "search": "donald trump",
  "maxItems": 20,
  "endPage": 1,
  "extendOutputFunction": "($) => { return {} }",
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}
EOF

# Run the Actor
curl "https://api.apify.com/v2/acts/epctex~newsweek-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor stats
  • 6 users
  • 462 runs
  • Modified about 19 hours ago

You might also like these Actors