{"id":17207367,"url":"https://github.com/abdus/scrape-web","last_synced_at":"2025-03-25T11:12:47.754Z","repository":{"id":44111726,"uuid":"195620660","full_name":"abdus/scrape-web","owner":"abdus","description":"A simple web scrapper for Node.js","archived":false,"fork":false,"pushed_at":"2022-12-09T17:18:04.000Z","size":26,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T10:15:32.659Z","etag":null,"topics":["crawler","web-scraping","web-scrapper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-07T07:02:46.000Z","updated_at":"2023-06-01T10:58:44.000Z","dependencies_parsed_at":"2023-01-25T22:46:14.930Z","dependency_job_id":null,"html_url":"https://github.com/abdus/scrape-web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdus%2Fscrape-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdus%2Fscrape-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdus%2Fscrape-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdus%2Fscrape-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdus","download_url":"https://codeload.github.com/abdus/scrape-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245449681,"owners_count":20617190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawler","web-scraping","web-scrapper"],"created_at":"2024-10-15T02:45:24.870Z","updated_at":"2025-03-25T11:12:47.710Z","avatar_url":"https://github.com/abdus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrapper\n\n\u003e A plug-n-play scrapper for Node.js\n\nI keep writing the same code again and again. So, thought of publishing it as a package.\n\n## usage\n\n```javascript\nconst scrapper = require('scrape-web');\n\nscrapper({\n  url: 'https://www.nytimes.com/',\n  elementToScrape: 'article .title',\n})\n  .then(data =\u003e console.log(data))\n  .catch(err =\u003e console.log(err));\n```\n\n#### With `async/await`\n\n```javascript\nconst scrapper = require('scrape-web');\n\n(async () =\u003e {\n  try {\n    const result = await scrapper({\n      url: 'https://www.nytimes.com/',\n      elementToScrape: 'article .title',\n    });\n\n    console.log(result);\n  } catch (err) {\n    console.log(err);\n  }\n})();\n```\n\nReturn an array of Objects\n\n```javascript\n[\n  {\n    href: '/some/url/location.html',\n    textContent: `Returns null if there's no textContent`,\n    src: 'applicaple in tags like img',\n  },\n];\n```\n\n## License\n\nThis package is published under the terms of the [MIT License](https://license.thisisabdus.dev).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdus%2Fscrape-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdus%2Fscrape-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdus%2Fscrape-web/lists"}