{"id":17637977,"url":"https://github.com/xdk78/grabbi","last_synced_at":"2025-04-14T07:12:12.399Z","repository":{"id":57252930,"uuid":"132932087","full_name":"xdk78/grabbi","owner":"xdk78","description":"grabbi a simple web scraper/crawler","archived":false,"fork":false,"pushed_at":"2019-03-23T16:35:54.000Z","size":109,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:51:16.546Z","etag":null,"topics":["crawler","html","scraper","web-scraper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdk78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-10T17:17:31.000Z","updated_at":"2025-02-20T18:23:27.000Z","dependencies_parsed_at":"2022-08-31T22:11:25.055Z","dependency_job_id":null,"html_url":"https://github.com/xdk78/grabbi","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/xdk78%2Fgrabbi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdk78%2Fgrabbi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdk78%2Fgrabbi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdk78%2Fgrabbi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdk78","download_url":"https://codeload.github.com/xdk78/grabbi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837285,"owners_count":21169374,"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","html","scraper","web-scraper"],"created_at":"2024-10-23T03:24:37.764Z","updated_at":"2025-04-14T07:12:12.372Z","avatar_url":"https://github.com/xdk78.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grabbi [![Build Status](https://travis-ci.org/xdk78/grabbi.svg?branch=master)](https://travis-ci.org/xdk78/grabbi)\n     simple web scraper/crawler\n\ngrabbi using JSDOM and axios under hood provide simple but powerful way for scraping websites.\n\n## Install grabbi\n    npm i grabbi\n    \n## Usage\n```js\nconst grabbi = require('grabbi')\n\ngrabbi('https://www.github.com').then(({ doc, res }) =\u003e {\n  console.log(doc.title)\n  console.log(doc.getElementsByClassName('alt-lead mb-4')[0].textContent)\n}).catch(err =\u003e console.log(err))\n```\n\n## Custom config\n```js\nconst grabbi = require('grabbi')\n\n// you can use https://github.com/axios/axios#axios-api as config\nconst config = {\n  method: 'get',\n  timeout: 10000,\n  headers: { 'X-Custom-Header': 'foobar' }\n}\n\ngrabbi('https://en.wikipedia.org/wiki/Main_Page', config).then(({ doc, res }) =\u003e {\n  console.log(doc.title)\n  console.log(doc.querySelector('div[id=\"articlecount\"]').textContent)\n}).catch(err =\u003e console.log(err))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdk78%2Fgrabbi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdk78%2Fgrabbi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdk78%2Fgrabbi/lists"}