{"id":21924846,"url":"https://github.com/suconbu/myojiget","last_synced_at":"2026-05-01T00:31:34.479Z","repository":{"id":74777443,"uuid":"275952886","full_name":"suconbu/myojiget","owner":"suconbu","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-01T14:27:25.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T11:28:19.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/suconbu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-30T00:01:49.000Z","updated_at":"2020-07-01T14:27:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a450797-ac25-49e1-803c-cc19101e9c45","html_url":"https://github.com/suconbu/myojiget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suconbu/myojiget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Fmyojiget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Fmyojiget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Fmyojiget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Fmyojiget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suconbu","download_url":"https://codeload.github.com/suconbu/myojiget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Fmyojiget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32481553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-28T21:16:11.078Z","updated_at":"2026-05-01T00:31:34.455Z","avatar_url":"https://github.com/suconbu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# myojiget\n\n## 概要\n\n入力された名字にまつわる情報をウェブサイト (名字由来net) から取得して表示する遊びプログラム群です。\n\nプログラム名     | 説明\n---------------|---------------------------------\nmyojiget.py    | 指定された名字の情報を取得します。\nmyojimatrix.py | 行・列に指定された文字の組み合わせからできた名字の人数を数えて表形式にしたテキストを出力します。\n\n## 使用方法\n\n### myojiget.py\n\n```myojiget.py [--nocache] [--text] {myoji}```\n\n* --nocache: キャッシュを参照しません。(登録はします)\n* --text: 取得結果を読みやすく加工したテキストで出力します。(既定の出力形式はJSONです)\n* myoji: 検索したい名字を漢字で指定します。\n\n一度取得した名字の情報はキャッシュデータとして\n `~/.myojiget_cache` ディレクトリの中に格納します。  \n 次回以降で同じ名字が指定された時はウェブサイトへのアクセスは行わず、代わりにキャッシュデータの内容を出力します。\n\n### myojimatrix.py\n\n```myojimatrix.py {rows_x_cols}```\n\n* rows_x_cols: 行・列にする漢字をそれぞれ半角空白区切りで指定します。\n\n## 使用例\n\n### myojiget.py\n\nオプションを指定なし\n```sh\n$ myojiget.py 山田\n{\n  \"myojiKanji\": \"山田\",\n  \"myojiYomis\": [\n    \"やまだ\",\n    \"やまた\",\n    \"ようだ\",\n    \"やだ\"\n  ],\n  \"rankInCountry\": 12,\n  \"countInCountry\": 814000,\n  \"myojiOriginDetailUri\": \"https://mnk-news.net/detail.htm?articleId=444\",\n  \"myojiOrigin\": \"①古代の山田氏には、山田臣、山田連、山田県主。\\n②平城天皇の山田皇子子孫。\\n③源氏、平氏、中臣鎌足が天智天皇より賜ったことに始まる氏\n（藤原氏）などにもみられる。\\n④摂津国八部郡山田庄発祥の族は物部氏。\\n⑤清和源氏高屋氏族、穂積氏流ほか。\\n\\n家紋は巴、藤、剣かたばみ、五七桐、茶の実、\n丸に八の字などがある。\\n語源は、山の中の田んぼ。\"\n}\n```\n\n`--text` オプション指定あり\n```sh\n$ myojiget.py 山田 --text\n山田さんは全国におよそ「814,000人」います。\n人数の多さでは全国第「12位」です。\n読み方には「やまだ, やまた, ようだ, やだ」などがあります。\n\n名字の由来解説:\n------------------------------------------------------------------------------------\n①古代の山田氏には、山田臣、山田連、山田県主。\n②平城天皇の山田皇子子孫。\n③源氏、平氏、中臣鎌足が天智天皇より賜ったことに始まる氏（藤原氏）などにもみられる。\n④摂津国八部郡山田庄発祥の族は物部氏。\n⑤清和源氏高屋氏族、穂積氏流ほか。\n\n家紋は巴、藤、剣かたばみ、五七桐、茶の実、丸に八の字などがある。\n語源は、山の中の田んぼ。\n------------------------------------------------------------------------------------\n詳しくは https://mnk-news.net/detail.htm?articleId=444 をご覧ください。\n```\n\n### myojimatrix.py\n\n```sh\n$ myojimatrix.py \"赤 白 青 x 石 木 森\"\n    |     石     |     木     |     森\n----|------------|------------|------------\n 赤 |     11,000 |     24,000 |         60\n 白 |     99,400 |     20,700 |         20\n 青 |        660 |    329,000 |        700\n```\n\n列に指定する文字は「|」記号でつなぐことで複数の名字の人数を合算することができます。\n```sh\n$ myojimatrix.py \"大 中 小 x 沢|澤 島|嶋\"\n    |   沢|澤    |   島|嶋\n----|------------|------------\n 大 |    117,200 |    146,000\n 中 |     99,000 |    479,200\n 小 |    152,200 |    255,300\n\n$ myojimatrix.py \"大 中 小 x 沢 澤 島 嶋\"\n    |     沢     |     澤     |     島     |     嶋\n----|------------|------------|------------|------------\n 大 |     80,200 |     37,000 |    123,000 |     23,000\n 中 |     69,800 |     29,200 |    401,000 |     78,200\n 小 |    102,000 |     50,200 |    216,000 |     39,300\n```\n\n## ライセンス\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuconbu%2Fmyojiget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuconbu%2Fmyojiget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuconbu%2Fmyojiget/lists"}