{"id":17801803,"url":"https://github.com/xissy/node-blog-request","last_synced_at":"2025-07-06T11:32:31.214Z","repository":{"id":9228728,"uuid":"11045178","full_name":"xissy/node-blog-request","owner":"xissy","description":"A node.js module getting a blog type and proper html from popular blogs using redirection or frameset.","archived":false,"fork":false,"pushed_at":"2013-07-14T01:58:08.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T19:39:09.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/xissy.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":"2013-06-29T04:09:04.000Z","updated_at":"2014-01-18T17:17:41.000Z","dependencies_parsed_at":"2022-08-24T09:00:21.333Z","dependency_job_id":null,"html_url":"https://github.com/xissy/node-blog-request","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xissy/node-blog-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-blog-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-blog-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-blog-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-blog-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xissy","download_url":"https://codeload.github.com/xissy/node-blog-request/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-blog-request/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263892774,"owners_count":23526153,"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":[],"created_at":"2024-10-27T12:39:41.267Z","updated_at":"2025-07-06T11:32:31.194Z","avatar_url":"https://github.com/xissy.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-blog-request\n\nA node.js module getting a blog type and proper html from popular blogs using redirection or frameset.\n\nCurrently supports:\n\n  * [Naver Blog](http://blog.naver.com)\n  * [Daum Blog](http://blog.daum.net)\n\n\n## Dependencies\n\nIt mainly requires:\n\n  * to get and parse html\n    * [request](https://npmjs.org/package/request)\n    * [cheerio](https://npmjs.org/package/cheerio)\n  * to detect and convert charsets\n    * [node-icu-charset-detector](https://npmjs.org/package/node-icu-charset-detector)\n    * [iconv](https://npmjs.org/package/iconv)\n\nSo I guess it'll be difficult to use this on Windows environment.\nTested with MacOS and Ubuntu.\n\n\n## Installation\n\nVia [npm](https://npmjs.org):\n\n    $ npm install blog-request\n\n\n## Usage\n\nThe basic usage of `BlogRequest.request` is very similar to [request](https://github.com/mikeal/request).\nBut, it always returns an utf8 encoded string.\n\n### Load in the module\n\n```javascript\n  var BlogRequest = require('blog-request');\n```\n\n### Detect a blog type and get its body\n  \n  * blogType (detected blog type)\n    * 'naver'\n    * 'daum'\n    * 'unknown'\n  * blogProperUrl (detected proper url)\n  * body (re-requested html string)\n\n```javascript\n  var url = 'http://blog.naver.com/rikish/60194709439'; // a blog page url\n\n  BlogRequest.request(url, function(err, response, body) {\n    var blogType = response.blogType;\n    var blogUrl = response.blogUrl;\n    var html = body;\n    ...\n  });\n```\n\n\n## License\n\nReleased under the MIT License\n\nCopyright (c) 2013 Taeho Kim \u003cxissysnd@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxissy%2Fnode-blog-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxissy%2Fnode-blog-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxissy%2Fnode-blog-request/lists"}