Instant web data scraper - Scrape any website
Try for free
7 days trial then $10.00/month - No credit card required now
View all Actors
Instant web data scraper - Scrape any website
curious_coder/instant-web-scraper
Try for free
7 days trial then $10.00/month - No credit card required now
Scrape any public and private website data by providing just URL and optionally cookies and proxy information. This scraper is similar to instant data scraper but runs on cloud and can be used as API too!
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
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "action": "scrapeData",
11 "url": "https://wordpress.org/plugins/?plugin_business_model=commercial",
12 "columnMappings": [
13 {
14 "key": "name",
15 "value": "2"
16 },
17 {
18 "key": "link",
19 "value": "0"
20 },
21 {
22 "key": "ratings",
23 "value": "4"
24 },
25 {
26 "key": "authorName",
27 "value": "8"
28 },
29 {
30 "key": "usersCount",
31 "value": "9"
32 },
33 {
34 "key": "description",
35 "value": "6"
36 },
37 {
38 "key": "lastUpdated",
39 "value": "11"
40 },
41 {
42 "key": "pluginLogo",
43 "value": "1"
44 }
45 ],
46 "tableNumber": 1,
47 "nextPageSelector": ".next.page-numbers",
48 "count": 100,
49 "minDelay": 2,
50 "maxDelay": 2
51};
52
53(async () => {
54 // Run the Actor and wait for it to finish
55 const run = await client.actor("curious_coder/instant-web-scraper").call(input);
56
57 // Fetch and print Actor results from the run's dataset (if any)
58 console.log('Results from dataset');
59 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
60 const { items } = await client.dataset(run.defaultDatasetId).listItems();
61 items.forEach((item) => {
62 console.dir(item);
63 });
64})();
65
66// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 77 monthly users
- 4 stars
- 88.7% runs succeeded
- Created in Aug 2023
- Modified about 1 month ago
Categories