{"id":19878908,"url":"https://github.com/shentengtu/cht-yp-crawler","last_synced_at":"2026-05-09T22:13:34.859Z","repository":{"id":86734656,"uuid":"128541308","full_name":"ShenTengTu/cht-yp-crawler","owner":"ShenTengTu","description":"Simple Crawler of www.iyp.com.tw.","archived":false,"fork":false,"pushed_at":"2018-04-07T15:35:45.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T08:55:56.946Z","etag":null,"topics":["crawler","node-js","nodejs","yellow-pages","yellowpages"],"latest_commit_sha":null,"homepage":null,"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/ShenTengTu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-07T15:23:50.000Z","updated_at":"2018-04-07T15:40:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2c290fe-3fe6-4981-b84c-1902ed6c71ee","html_url":"https://github.com/ShenTengTu/cht-yp-crawler","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/ShenTengTu%2Fcht-yp-crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShenTengTu%2Fcht-yp-crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShenTengTu%2Fcht-yp-crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShenTengTu%2Fcht-yp-crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShenTengTu","download_url":"https://codeload.github.com/ShenTengTu/cht-yp-crawler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309093,"owners_count":19941722,"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","node-js","nodejs","yellow-pages","yellowpages"],"created_at":"2024-11-12T17:07:02.230Z","updated_at":"2026-05-09T22:13:34.812Z","avatar_url":"https://github.com/ShenTengTu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cht-yp-crawler\n根據[中華黃頁](www.iyp.com.tw)的搜尋結果，擷取每一頁的公司名稱、電話(圖)、地址(圖)並匯出成XLSX檔案。\n\u003e Simple Crawler of www.iyp.com.tw.\n\u003e According to the search results ,company name, phone number(image), address(image) of each page are retrieved and exported into the XLSX file.\n\n## Unrealized but planned features\n- 使用OCR從電話號碼圖像和地址圖像中獲取文字\n\u003e - Using OCR to get text from phone number image \u0026 address image\n\n## Issue\n- Microsoft Excel needs to recover XLSX before opening([exceljs/issues/106](https://github.com/guyonroche/exceljs/issues/106))\n\n## Example\n執行完成後你會看到`[新北市]保險.xlsx`出現在專案根目錄中。\n\u003e 如果開啟檔案出現『我們發現.xlsx的部分內容有問題您要我們盡可能嘗試復原?』的訊息，請選擇“是”即可。\n\n```js\nconst {crawl}  = require('./src/index.js');\n\ncrawl({keyword:'保險',area:'新北市',page:0}).then(function(err) {\n  console.log(err?err:'xlsx done.')\n});\n\n/*Log\nsearch { k: '保險', a_id: 4, p: 0 }\n寶祥保險經紀人股份有限公司 1\n富邦產物保險股份有限公司 2\n富邦產物保險股份有限公司 3\n富邦產物保險股份有限公司 4\n兆鎮國際保險經紀人有限公司 5\n保誠人壽保險股份有限公司 6\n國泰世紀產物保險股份有限公司 7\n國泰世紀產物保險股份有限公司 8\n新光產物保險股份有限公司 9\n新光產物保險股份有限公司 10\nsearch { k: '保險', a_id: 4, p: 1 }\n南山人壽保險股份有限公司 11\n合佳保險代理人有限公司 12\n大誠保險經紀人股份有限公司 13\n...\n...\n...\nxlsx done.\n*/\n```\n## table of area\n|area|a_id|area|a_id|area|a_id|\n|:-:|:-:|:-:|:-:|:-:|:-:|\n|全區|0|苗栗縣|8|高雄市|18|\n|宜蘭縣|1|台中市|9|屏東縣|21|\n|基隆市|3|彰化縣|11|花蓮縣|2|\n|新北市|4|南投縣|12|台東縣|22|\n|台北市|6|雲林縣|13|澎湖縣|17|\n|桃園市|5|嘉義縣市|14|馬祖|23|\n|新竹縣市|7|台南市|15|金門縣|20|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshentengtu%2Fcht-yp-crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshentengtu%2Fcht-yp-crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshentengtu%2Fcht-yp-crawler/lists"}