{"id":24064437,"url":"https://github.com/linzap/node-g-search","last_synced_at":"2025-07-29T00:11:20.473Z","repository":{"id":57311354,"uuid":"45958016","full_name":"LinZap/node-g-search","owner":"LinZap","description":"google search crawler","archived":false,"fork":false,"pushed_at":"2018-04-29T11:43:27.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T09:10:56.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/LinZap.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":"2015-11-11T03:39:59.000Z","updated_at":"2021-08-09T19:25:56.000Z","dependencies_parsed_at":"2022-09-07T09:11:44.324Z","dependency_job_id":null,"html_url":"https://github.com/LinZap/node-g-search","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LinZap/node-g-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinZap%2Fnode-g-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinZap%2Fnode-g-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinZap%2Fnode-g-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinZap%2Fnode-g-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinZap","download_url":"https://codeload.github.com/LinZap/node-g-search/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinZap%2Fnode-g-search/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267606970,"owners_count":24114815,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-09T10:25:24.643Z","updated_at":"2025-07-29T00:11:20.390Z","avatar_url":"https://github.com/LinZap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Google Search Crawler\n\n[![Join the chat at https://gitter.im/LinZap/node-g-search](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/LinZap/node-g-search?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nNode Google Search Crawler\n\n## Introduction\n```js\nvar g = require('node-g-search');\n\ng.search(\"bon jovi\")\n.then(function(d){\n\t\n\tif(d.data)\n\t\tfor (var i = 0; i \u003c d.data.length; i++) {\n\t\t\tconsole.log(d.data[i].title);\n\t\t\tconsole.log(d.data[i].href);\n\t\t\tconsole.log(d.data[i].des);\n\t\t}\n})\n\n```\n\n## Installation\n\n\tnpm install --save node-g-search\n\n\n## Search API\n\n### g.search(q[,page[,retry]])\n\n### g.searchAll(q[,retry])\n\n### g.pg()\n \n \n## Connect to PostgreSQL\n[node-postgres](https://github.com/brianc/node-postgres) built-in\nand complete access layer to node-postgres via Promises/A+.\n\n```js\nvar g = require('node-g-search'),\n    db = g.pg();\n\nvar p = db.connect({\n\tuser:'user',\n\tpassword: 'pwd',\n\thost: 'localhost',\n\tdbname: 'dbname'\n})\n\n.then(function(client){\n\n\treturn db.query('select ?::int+?::int as ans',[10,20])\n\t.then(function(res){\n\t\tconsole.log(res.rows[0].ans);\n\t\treturn res.rows[0].ans;\n\t},function(err){\n\t\tconsole.log('%s',err);\n\t})\n\t\n})\n\n```\n  \n   \n  \n  \n  \n## Pg Client API\n\n### db.connect(option)\n```js\n{\n\tuser:'user',\n\tpassword: 'pwd',\n\thost: 'localhost',\n\tdbname: 'dbname'\n}\n```\n  \n### db.query(sql [,params]) \nuse [Prepared Statements](https://github.com/brianc/node-postgres/wiki/Prepared-Statements)   \n`$1`,`$2`or`?` \nreturn  Promise\u003c[result](https://github.com/brianc/node-postgres/wiki/Query#result-object)\u003e object\n  \n```sql\n\t select * from table where id=?\n```\n  \n### db.queryIgnore(sql [,params [,retry]]) \n  \n \n### db.close()\n## License BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinzap%2Fnode-g-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinzap%2Fnode-g-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinzap%2Fnode-g-search/lists"}