Dun & Bradstreet Scraper avatar
Dun & Bradstreet Scraper
Try for free

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

View all Actors
Dun & Bradstreet Scraper

Dun & Bradstreet Scraper

epctex/dnb-scraper
Try for free

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

Effortlessly extract valuable company information, financial projections, industry insights, and more from the extensive Dun & Bradstreet commercial database. Dive deep into the D&B Data Cloud, Business Directory, articles, companies, and industries with customized search terms.

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 more

Node.js

Python

curl

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "startUrls": [
9        "https://www.dnb.com/business-directory/industry-analysis.commercial_and_industrial_machinery_and_equipment_rental_and_leasing.html",
10        "https://www.dnb.com/perspectives/analytics/us-business-economic-trends.html",
11        "https://www.dnb.com/business-directory/company-profiles.alibaba_(china)_technology_co_ltd.e3529c2476c569b9912000545d3314d6.html",
12    ],
13    "maxItems": 50,
14    "extendOutputFunction": """($) => {
15    const result = {};
16    // Uncomment to add a title to the output
17    // result.title = $('title').text().trim();
18
19    return result;
20}""",
21    "proxy": { "useApifyProxy": True },
22}
23
24# Run the Actor and wait for it to finish
25run = client.actor("epctex/dnb-scraper").call(run_input=run_input)
26
27# Fetch and print Actor results from the run's dataset (if there are any)
28print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30    print(item)
31
32# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
  • 33 monthly users
  • 93.0% runs succeeded
  • 1.1 hours response time
  • Created in Mar 2021
  • Modified about 19 hours ago