{"id":13516816,"url":"https://github.com/tani/cheeriogs","last_synced_at":"2025-04-04T19:14:00.516Z","repository":{"id":37829309,"uuid":"137228445","full_name":"tani/cheeriogs","owner":"tani","description":"Cheerio/ jQuery for Google Apps Script","archived":false,"fork":false,"pushed_at":"2024-08-17T00:15:42.000Z","size":1759,"stargazers_count":472,"open_issues_count":5,"forks_count":43,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T18:15:18.925Z","etag":null,"topics":[],"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/tani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"tani"}},"created_at":"2018-06-13T14:38:54.000Z","updated_at":"2025-03-22T07:49:20.000Z","dependencies_parsed_at":"2023-10-15T04:46:03.929Z","dependency_job_id":"58015022-8034-42a9-90e3-d2ce335380ed","html_url":"https://github.com/tani/cheeriogs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcheeriogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcheeriogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcheeriogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcheeriogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tani","download_url":"https://codeload.github.com/tani/cheeriogs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"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-08-01T05:01:26.172Z","updated_at":"2025-04-04T19:14:00.497Z","avatar_url":"https://github.com/tani.png","language":"JavaScript","readme":"# cheerio for Google Apps Script\n\nThis project is unofficial update of https://github.com/3846masa/cheerio-gasify.\n\nDifference to the project is follows.\n\n- Using webpack with [gas-webpack-plugin](https://github.com/fossamagna/gas-webpack-plugin)\n- Updating [cheerio](https://github.com/cheeriojs/cheerio) to 1.0.0\n- Exporting the function `load` as same as `cheerio.load`\n\nScript ID: `1ReeQ6WO8kKNxoaA_O0XEQ589cIrRvEBA9qcWpNqdOP17i47u6N9M5Xh0`\n\n## Adding the library to your project\n\nCheerio (cheeriogs) for Google Apps Script is made available as a script library. This is how you add it to your project:\n\nSelect \"Resources\" \u003e \"Libraries...\" in the Google Apps Script editor.\nEnter the project key (1ReeQ6WO8kKNxoaA_O0XEQ589cIrRvEBA9qcWpNqdOP17i47u6N9M5Xh0) in the \"Find a Library\" field, and choose \"Select\". (If you have copied the library, enter instead the project key of your copy.)\nSelect the highest version number, and choose `Cheerio` as the identifier. (Do not turn on Development Mode unless you know what you are doing. The development version may not work.)\nPress Save. You can now use the Cheerio (cheeriogs) library in your code.\n\n## Usage\n\n```js\nfunction getContent_(url) {\n    return UrlFetchApp.fetch(url).getContentText()\n}\n```\n\n### Returns the content of Wikipedia's Main Page\n\n```js\n  const content = getContent_('https://en.wikipedia.org');\n  const $ = Cheerio.load(content);\n  Logger.log($('#mp-right').text());\n```\n\n### Returns the content of the first paragraph `\u003cp\u003e` of Wikipedia's Main Page\n\n```js\n  const content = getContent_('https://en.wikipedia.org');\n  const $ = Cheerio.load(content);\n  Logger.log($('p').first().text());\n```\n\n### Changes the content of the gas server part before hosting. **!Do not do this. But you can.**\n\n```js\n  const html = HtmlService.createHtmlOutputFromFile(\"index\").getContent();\n  const $ = Cheerio.load(html);\n  $(\"#main\").append(\"\u003cp\u003eCheeriosse!!1\u003c/p\u003e\");\n  return HtmlService.createHtmlOutput(\n    Utilities.formatString(\"\u003chtml\u003e%s\u003c/html\u003e\", $('html').html())\n  );\n```\n\n## FAQ\n\n### Why can not I debug my code?\n\nThe latest Google App Script uses V8 runtime.\nVersion 12 of Cheeriogs supports the runtime.\nPlease upgrade your script. Then, you can do it.\n\n## Sponsorship\n\nThis project is maintained by volunteers.\nIf you are using this project where it is important,\nconsider one time or regular donations, please.\n\n- [❤️ GitHub Sponsors (@tani)](https://github.com/sponsors/tani)\n","funding_links":["https://github.com/sponsors/tani"],"categories":["JavaScript","Libraries \u0026 Modules","3. Libraries \u0026 Modules"],"sub_categories":["Parsing","3.4. Parsing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftani%2Fcheeriogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftani%2Fcheeriogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftani%2Fcheeriogs/lists"}