Investing.com Scraper avatar
Investing.com Scraper
Try for free

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

View all Actors
Investing.com Scraper

Investing.com Scraper

glitch_404/investing-scraper
Try for free

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

Scrape Investing.com daily news and 250K of archived news and articles

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

Node.js

Python

curl

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "startUrls": [
9        { "url": "https://www.investing.com/news/latest-news/" },
10        { "url": "https://www.investing.com/news/most-popular-news/" },
11        { "url": "https://www.investing.com/news/headlines/" },
12        { "url": "https://www.investing.com/news/cryptocurrency-news/" },
13        { "url": "https://www.investing.com/news/stock-market-news/" },
14        { "url": "https://www.investing.com/news/commodities-news/" },
15        { "url": "https://www.investing.com/news/forex-news/" },
16        { "url": "https://www.investing.com/news/economy/" },
17        { "url": "https://www.investing.com/news/economic-indicators/" },
18        { "url": "https://www.investing.com/news/politics/" },
19        { "url": "https://www.investing.com/news/world-news/" },
20    ],
21    "dateRange": "2023/1/5 - 2020/1/5",
22    "maxArticles": 1000,
23    "proxyConfiguration": { "useApifyProxy": True },
24}
25
26# Run the Actor and wait for it to finish
27run = client.actor("glitch_404/investing-scraper").call(run_input=run_input)
28
29# Fetch and print Actor results from the run's dataset (if there are any)
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31    print(item)
Developer
Community logoMaintained by Community
Actor metrics
  • 2 monthly users
  • 94.7% runs succeeded
  • Modified 15 days ago

You might also like these Actors