{"id":26499933,"url":"https://github.com/n0bisuke/gwtestdq","last_synced_at":"2026-05-17T08:31:28.505Z","repository":{"id":55235426,"uuid":"261426114","full_name":"n0bisuke/gwtestdq","owner":"n0bisuke","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-06T01:53:37.000Z","size":53,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T15:19:27.560Z","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/n0bisuke.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":"2020-05-05T10:26:36.000Z","updated_at":"2020-05-05T10:31:06.000Z","dependencies_parsed_at":"2022-08-14T17:23:20.620Z","dependency_job_id":null,"html_url":"https://github.com/n0bisuke/gwtestdq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/n0bisuke/gwtestdq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0bisuke%2Fgwtestdq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0bisuke%2Fgwtestdq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0bisuke%2Fgwtestdq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0bisuke%2Fgwtestdq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n0bisuke","download_url":"https://codeload.github.com/n0bisuke/gwtestdq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0bisuke%2Fgwtestdq/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265683301,"owners_count":23810827,"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":"2025-03-20T15:19:31.850Z","updated_at":"2026-05-17T08:31:23.482Z","avatar_url":"https://github.com/n0bisuke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"・WEBサイトから大行進スケジュールを全て取得してくる\n・取得したデータを成形する\n・時間のデータの１時間前になったら通知したい\n＝収集したデータの時間＋１時間して、実行時間とイコールなれば通知　そうでないならば通知をしない\n・定期実行は00分・30分\n・LINE Notifyに通知する\n・メールの本文は\n　＊＊＊、メータルーキー軍団大行進！　⇦時間を入れたい\n・一緒に画像も送りたい\n\n\nDQサイト：https://hiroba.dqx.jp/sc/tokoyami/\n\n```js\n//6:00~ \n    item = data[1].split('class=\"pt0 pb0\"');\n    if(item[2] \u0026\u0026 item[2].indexOf('img') != -1){\n        console.log('6:00~ メタル発生'); //6:00~\n    }\n```\n\n```js\n'use strcit';\n\nconst axios = require('axios');\nconst fs = require(\"fs\"); //注: npm i 不要\n\n// 実際にデータを取得する getRequest 関数\nasync function getRequest() {\n  let response;\n  try {\n    response = await axios.get('https://hiroba.dqx.jp/sc/tokoyami/');\n    let html = response.data;\n    html = html.replace(/\\r?\\n/g,\"\"); //整形1: 改行などを削除して整形しやすくする\n    let metal = html.match(/id=\"metal-container\" style=\"display: none;\"\u003e(.*?)\u003c\\/div\u003e/)[1];\n    //metal = metal.replace(/\u003c(\"[^\"]*\"|'[^']*'|[^'\"\u003e])*\u003e/g,''); //整形2: タグを削除\n    //console.log(metal);\n    const PATH = \"./docs/data.txt\";\n    fs.writeFileSync(PATH,metal);\n\n    let item,data = [];\n    let outputmsg = ''; \n\n\n\n    data = metal.split('\u003ctr class=\"\"\u003e');\n\n    for (let index = 1; index \u003c data.length; index++) {\n       \n        item = data[index].split('class=\"pt0 pb0\"');\n        if(item[2] \u0026\u0026 item[2].indexOf('img') != -1){\n            const time = item[1].match(/\u003e\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(.*?)\u0026nbsp/)[1];\n            outputmsg += time + '/' + 'メタル発生 \\n';\n        }   \n    }\n    console.log(outputmsg)\n\n  } catch (error) {\n    console.error(error);\n  }\n}\n\n// getRequest を呼び出してデータを読み込む\ngetRequest();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0bisuke%2Fgwtestdq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0bisuke%2Fgwtestdq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0bisuke%2Fgwtestdq/lists"}