![Dun and Bradstreet (DNB) Scraper avatar](https://images.apifyusercontent.com/D5Zi0Cy5ZZyj-E3f1dDKssxvfBkGgLNWb-JF10mey_0/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9mWGJsenM2UUxNRHVtcGRJOS9naFF1ZGQ4WUUzQzRUMzg2Mi1TY3JlZW5zaG90XzIwMjMtMDYtMjZfYXRfMy4wNi4wMl9QTS5wbmc.webp)
Dun and Bradstreet (DNB) Scraper
Try for free
1 day trial then $25.00/month - No credit card required now
View all Actors![Dun and Bradstreet (DNB) Scraper](https://images.apifyusercontent.com/D5Zi0Cy5ZZyj-E3f1dDKssxvfBkGgLNWb-JF10mey_0/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9mWGJsenM2UUxNRHVtcGRJOS9naFF1ZGQ4WUUzQzRUMzg2Mi1TY3JlZW5zaG90XzIwMjMtMDYtMjZfYXRfMy4wNi4wMl9QTS5wbmc.webp)
![Dun and Bradstreet (DNB) Scraper](https://images.apifyusercontent.com/D5Zi0Cy5ZZyj-E3f1dDKssxvfBkGgLNWb-JF10mey_0/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9mWGJsenM2UUxNRHVtcGRJOS9naFF1ZGQ4WUUzQzRUMzg2Mi1TY3JlZW5zaG90XzIwMjMtMDYtMjZfYXRfMy4wNi4wMl9QTS5wbmc.webp)
Dun and Bradstreet (DNB) Scraper
curious_coder/dun-and-bradstreet-dnb-com-scraper
Try for free
1 day trial then $25.00/month - No credit card required now
Scrape companies and contacts details from DnB database based on industry, job title, employee count, entity types etc.
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
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 "action": "scrapeSearch",
9 "searchTerm": "marketing",
10 "searchType": "company",
11 "startPage": 1,
12 "proxy": {
13 "useApifyProxy": True,
14 "apifyProxyGroups": ["RESIDENTIAL"],
15 "apifyProxyCountry": "US",
16 },
17}
18
19# Run the Actor and wait for it to finish
20run = client.actor("curious_coder/dun-and-bradstreet-dnb-com-scraper").call(run_input=run_input)
21
22# Fetch and print Actor results from the run's dataset (if there are any)
23print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27# π Want to learn more π? Go to β https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
- 16 monthly users
- 2 stars
- 16.7% runs succeeded
- 0.51 hours response time
- Created in Jun 2023
- Modified 3 months ago