From e92aa7812d3457aaae5256e66e8d15a89e0b0d41 Mon Sep 17 00:00:00 2001 From: "takahiro.tominaga" Date: Sun, 22 Jan 2023 03:02:21 +0900 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=90=91=E3=81=AE=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scraping/hinatazaka/blogUrls.txt | 1 - scraping/hinatazaka/converted.json | 299 ++++++++++++++++ scraping/hinatazaka/converter.py | 30 ++ scraping/hinatazaka/detailedInfo.py | 36 +- scraping/hinatazaka/detailed_infos.txt | 453 +++++++++++++++---------- scraping/hinatazaka/getFacePic.py | 2 +- 6 files changed, 626 insertions(+), 195 deletions(-) create mode 100644 scraping/hinatazaka/converted.json create mode 100644 scraping/hinatazaka/converter.py diff --git a/scraping/hinatazaka/blogUrls.txt b/scraping/hinatazaka/blogUrls.txt index 4974b5a..ce6572a 100644 --- a/scraping/hinatazaka/blogUrls.txt +++ b/scraping/hinatazaka/blogUrls.txt @@ -16,7 +16,6 @@ "hamagishihiyori": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=17", "matsudakonoka": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=18", "miyatamanamo": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=19", - "watanabemiho": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=20", "kamimurahinano": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=21", "takahashimikuni": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=22", "morimotomarii": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=23", diff --git a/scraping/hinatazaka/converted.json b/scraping/hinatazaka/converted.json new file mode 100644 index 0000000..3d0945f --- /dev/null +++ b/scraping/hinatazaka/converted.json @@ -0,0 +1,299 @@ +[ + { + "name_ja": "\u6f6e \u7d17\u7406\u83dc", + "birthday": "1997\u5e7412\u670826\u65e5", + "height": "157cm", + "blood_type": "O\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/ushiosarina.jpeg" + }, + { + "name_ja": "\u5f71\u5c71 \u512a\u4f73", + "birthday": "2001\u5e745\u67088\u65e5", + "height": "155cm", + "blood_type": "O\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=4", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/kageyamayuuka.jpeg" + }, + { + "name_ja": "\u52a0\u85e4 \u53f2\u5e06", + "birthday": "1998\u5e742\u67082\u65e5", + "height": "160.5cm", + "blood_type": "A\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=5", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/katoushiho.jpeg" + }, + { + "name_ja": "\u9f4a\u85e4 \u4eac\u5b50", + "birthday": "1997\u5e749\u67085\u65e5", + "height": "155.5cm", + "blood_type": "A\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=6", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/saitoukyouko.jpeg" + }, + { + "name_ja": "\u4f50\u3005\u6728 \u4e45\u7f8e", + "birthday": "1996\u5e741\u670822\u65e5", + "height": "167.5cm", + "blood_type": "O\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=7", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/sasakikumi.jpeg" + }, + { + "name_ja": "\u4f50\u3005\u6728 \u7f8e\u73b2", + "birthday": "1999\u5e7412\u670817\u65e5", + "height": "165cm", + "blood_type": "O\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=8", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/sasakimirei.jpeg" + }, + { + "name_ja": "\u9ad8\u702c \u611b\u5948", + "birthday": "1998\u5e749\u670820\u65e5", + "height": "157cm", + "blood_type": "A\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=9", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/takasemana.jpeg" + }, + { + "name_ja": "\u9ad8\u672c \u5f69\u82b1", + "birthday": "1998\u5e7411\u67082\u65e5", + "height": "162cm", + "blood_type": "B\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=10", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/takamotoayaka.jpeg" + }, + { + "name_ja": "\u6771\u6751 \u82bd\u4f9d", + "birthday": "1998\u5e748\u670823\u65e5", + "height": "154cm", + "blood_type": "O\u578b", + "generation": "1\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=11", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/higashimuramei.jpeg" + }, + { + "name_ja": "\u91d1\u6751 \u7f8e\u7396", + "birthday": "2002\u5e749\u670810\u65e5", + "height": "163cm", + "blood_type": "O\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=12", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/kanemuramiku.jpeg" + }, + { + "name_ja": "\u6cb3\u7530 \u967d\u83dc", + "birthday": "2001\u5e747\u670823\u65e5", + "height": "154cm", + "blood_type": "B\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=13", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/kawatahina.jpeg" + }, + { + "name_ja": "\u5c0f\u5742 \u83dc\u7dd2", + "birthday": "2002\u5e749\u67087\u65e5", + "height": "161cm", + "blood_type": "O\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=14", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/kosakanao.jpeg" + }, + { + "name_ja": "\u5bcc\u7530 \u9234\u82b1", + "birthday": "2001\u5e741\u670818\u65e5", + "height": "165.5cm", + "blood_type": "A\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=15", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/tomitasuzuka.jpeg" + }, + { + "name_ja": "\u4e39\u751f \u660e\u91cc", + "birthday": "2001\u5e742\u670815\u65e5", + "height": "156.5cm", + "blood_type": "AB\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=16", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/nibuakari.jpeg" + }, + { + "name_ja": "\u6ff1\u5cb8 \u3072\u3088\u308a", + "birthday": "2002\u5e749\u670828\u65e5", + "height": "167.5cm", + "blood_type": "A\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=17", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/hamagishihiyori.jpeg" + }, + { + "name_ja": "\u677e\u7530 \u597d\u82b1", + "birthday": "1999\u5e744\u670827\u65e5", + "height": "157.5cm", + "blood_type": "A\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=18", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/matsudakonoka.jpeg" + }, + { + "name_ja": "\u5bae\u7530 \u611b\u840c", + "birthday": "1998\u5e744\u670828\u65e5", + "height": "159.3cm", + "blood_type": "A\u578b", + "generation": "2\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=19", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/miyatamanamo.jpeg" + }, + { + "name_ja": "\u4e0a\u6751 \u3072\u306a\u306e", + "birthday": "2004\u5e744\u670812\u65e5", + "height": "162.5cm", + "blood_type": "AB\u578b", + "generation": "3\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=21", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/kamimurahinano.jpeg" + }, + { + "name_ja": "\u9ad9\u6a4b \u672a\u6765\u8679", + "birthday": "2003\u5e749\u670827\u65e5", + "height": "170cm", + "blood_type": "B\u578b", + "generation": "3\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=22", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/takahashimikuni.jpeg" + }, + { + "name_ja": "\u68ee\u672c \u8309\u8389", + "birthday": "2004\u5e742\u670823\u65e5", + "height": "161.1cm", + "blood_type": "A\u578b", + "generation": "3\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=23", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/morimotomarii.jpeg" + }, + { + "name_ja": "\u5c71\u53e3 \u967d\u4e16", + "birthday": "2004\u5e742\u670823\u65e5", + "height": "151.8cm", + "blood_type": "O\u578b", + "generation": "3\u671f\u751f", + "blog_url": "https://hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=24", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/yamaguchiharuyo.jpeg" + }, + { + "name_ja": "\u77f3\u585a \u7476\u5b63", + "birthday": "2004\u5e748\u67086\u65e5", + "height": "154cm", + "blood_type": "A\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/ishizukatamaki.jpeg" + }, + { + "name_ja": "\u5cb8 \u5e06\u590f", + "birthday": "2004\u5e748\u670815\u65e5", + "height": "157cm", + "blood_type": "O\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/kishihonoka.jpeg" + }, + { + "name_ja": "\u5c0f\u897f \u590f\u83dc\u5b9f", + "birthday": "2004\u5e7410\u67083\u65e5", + "height": "164cm", + "blood_type": "B\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/konishinanami.jpeg" + }, + { + "name_ja": "\u6e05\u6c34 \u7406\u592e", + "birthday": "2005\u5e741\u670815\u65e5", + "height": "165cm", + "blood_type": "AB\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/shimizurio.jpeg" + }, + { + "name_ja": "\u6b63\u6e90\u53f8 \u967d\u5b50", + "birthday": "2007\u5e742\u670814\u65e5", + "height": "156.5cm", + "blood_type": "B\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/shougenjiyouko.jpeg" + }, + { + "name_ja": "\u7af9\u5185 \u5e0c\u6765\u91cc", + "birthday": "2006\u5e742\u670820\u65e5", + "height": "153cm", + "blood_type": "AB\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/takeuchikirari.jpeg" + }, + { + "name_ja": "\u5e73\u5c3e \u5e06\u590f", + "birthday": "2003\u5e747\u670831\u65e5", + "height": "156cm", + "blood_type": "A\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/hiraohonoka.jpeg" + }, + { + "name_ja": "\u5e73\u5ca1 \u6d77\u6708", + "birthday": "2002\u5e744\u67089\u65e5", + "height": "157cm", + "blood_type": "A\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/hiraokamitsuki.jpeg" + }, + { + "name_ja": "\u85e4\u5d8c \u679c\u6b69", + "birthday": "2006\u5e748\u67087\u65e5", + "height": "158cm", + "blood_type": "\u4e0d\u660e", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/fujishimakaho.jpeg" + }, + { + "name_ja": "\u5bae\u5730 \u3059\u307f\u308c", + "birthday": "2005\u5e7412\u670831\u65e5", + "height": "162.2cm", + "blood_type": "\u4e0d\u660e", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/miyachisumire.jpeg" + }, + { + "name_ja": "\u5c71\u4e0b \u8449\u7559\u82b1", + "birthday": "2003\u5e745\u670820\u65e5", + "height": "160cm", + "blood_type": "O\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/yamashitaharuka.jpeg" + }, + { + "name_ja": "\u6e21\u8fba \u8389\u5948", + "birthday": "2009\u5e742\u67087\u65e5", + "height": "151cm", + "blood_type": "A\u578b", + "generation": "4\u671f\u751f", + "blog_url": "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000", + "img_url": "https://kokoichi0206.mydns.jp/imgs/hinata/watanaberina.jpeg" + } +] \ No newline at end of file diff --git a/scraping/hinatazaka/converter.py b/scraping/hinatazaka/converter.py new file mode 100644 index 0000000..e56366c --- /dev/null +++ b/scraping/hinatazaka/converter.py @@ -0,0 +1,30 @@ +import json + + +def main(): + with open("./detailed_infos.txt", mode="r", encoding='utf-8') as f: + x = json.load(f) + print(x) + with open("./blogUrls.txt", mode="r", encoding='utf-8') as f: + blogs = json.load(f) + converted = [] + for k, v in x.items(): + item = {} + item["name_ja"] = v["名前"] + item["birthday"] = v["生年月日"] + item["height"] = v["身長"] + item["blood_type"] = v["血液型"] + item["generation"] = v["generation"] + print(k) + if item["generation"] == "4期生": + item["blog_url"] = "https://www.hinatazaka46.com/s/official/diary/member/list?ima=0000&ct=2000" + else: + item["blog_url"] = blogs[k] + item["img_url"] = f"https://kokoichi0206.mydns.jp/imgs/hinata/{k}.jpeg" + + converted.append(item) + print(converted) + with open("./converted.json", mode="w", encoding="utf-8") as f: + json.dump(converted, f, indent=2) + +main() diff --git a/scraping/hinatazaka/detailedInfo.py b/scraping/hinatazaka/detailedInfo.py index 7a228bc..b057762 100644 --- a/scraping/hinatazaka/detailedInfo.py +++ b/scraping/hinatazaka/detailedInfo.py @@ -2,6 +2,7 @@ import requests from bs4 import BeautifulSoup import pykakasi +import json def scrapingDetailedInfo(): @@ -20,6 +21,13 @@ def scrapingDetailedInfo(): infos = {} JAPANESE_NAME_TAG = '名前' PERSONAL_INFO_TAG = ["生年月日", "血液型", '星座', '身長'] + + # FIXME: 何期生かをとってくる機構がないので、先頭のメンバーで判断している。 + FIRST_MENBER_2ND = "金村 美玖" + FIRST_MENBER_3RD = "上村 ひなの" + FIRST_MENBER_4TH = "石塚 瑶季" + generation = "1期生" + BASE_URL = 'https://www.hinatazaka46.com' for detail in details: person = {} @@ -54,11 +62,19 @@ def scrapingDetailedInfo(): if tag_name != '出身地': person[tag_name] = info + if name_ja == FIRST_MENBER_2ND: + generation = "2期生" + if name_ja == FIRST_MENBER_3RD: + generation = "3期生" + if name_ja == FIRST_MENBER_4TH: + generation = "4期生" + person["generation"] = generation + infos[name_en] = person # 予想より多く detail が取れているみたいなので # 無理矢理最後のメンバーで終わらせる - if name_ja == '山口 陽世': + if name_ja == '渡辺 莉奈': break return infos @@ -85,23 +101,11 @@ def main(): ## key = 'akimotomanatsu' ## value = {'生年月日': '1993年8月20日', '血液型': 'B型', '星座': 'しし座', '身長': '154cm'} - TAB = '\t' - NEW_LINE = '\n' - DICT_START = '{' - DICT_END = '}' - with open('detailed_infos.txt', mode='w') as f: - f.write(f'{DICT_START}{NEW_LINE}') - for name_en, detailed_info in detailed_infos.items(): - f.write(f'{TAB}"{name_en}": {DICT_START}{NEW_LINE}') - for info_tag, data in detailed_info.items(): - f.write(f'{TAB}{TAB}"{info_tag}": "{data}",{NEW_LINE}') - f.write(f'{TAB}{DICT_END},{NEW_LINE}') - f.write(f'{DICT_END}{NEW_LINE}') - + with open('detailed_infos.txt', 'w') as f: + json.dump(detailed_infos, f, indent=2) with open('names.txt', mode='w') as g: - for name_en, detailed_info in detailed_infos.items(): - g.write(f'{name_en}{NEW_LINE}') + json.dump(list(detailed_infos.keys()), g, indent=2) if __name__ == '__main__': diff --git a/scraping/hinatazaka/detailed_infos.txt b/scraping/hinatazaka/detailed_infos.txt index f076678..a1f7f58 100644 --- a/scraping/hinatazaka/detailed_infos.txt +++ b/scraping/hinatazaka/detailed_infos.txt @@ -1,178 +1,277 @@ { - "ushiosarina": { - "名前": "潮 紗理菜", - "生年月日": "1997年12月26日", - "星座": "やぎ座", - "身長": "157.5cm", - "世代": "1期生", - "血液型": "O型" - }, - "kageyamayuuka": { - "名前": "影山 優佳", - "生年月日": "2001年5月8日", - "星座": "おうし座", - "身長": "154.5cm", - "世代": "1期生", - "血液型": "O型" - }, - "katoushiho": { - "名前": "加藤 史帆", - "生年月日": "1998年2月2日", - "星座": "みずがめ座", - "身長": "160.5cm", - "世代": "1期生", - "血液型": "A型" - }, - "saitoukyouko": { - "名前": "齊藤 京子", - "生年月日": "1997年9月5日", - "星座": "おとめ座", - "身長": "154.9cm", - "世代": "1期生", - "血液型": "A型" - }, - "sasakikumi": { - "名前": "佐々木 久美", - "生年月日": "1996年1月22日", - "星座": "みずがめ座", - "身長": "167.8cm", - "世代": "1期生", - "血液型": "O型" - }, - "sasakimirei": { - "名前": "佐々木 美玲", - "生年月日": "1999年12月17日", - "星座": "いて座", - "身長": "165cm", - "世代": "1期生", - "血液型": "O型" - }, - "takasemana": { - "名前": "高瀬 愛奈", - "生年月日": "1998年9月20日", - "星座": "おとめ座", - "身長": "157cm", - "世代": "1期生", - "血液型": "A型" - }, - "takamotoayaka": { - "名前": "高本 彩花", - "生年月日": "1998年11月2日", - "星座": "さそり座", - "身長": "162.2cm", - "世代": "1期生", - "血液型": "B型" - }, - "higashimuramei": { - "名前": "東村 芽依", - "生年月日": "1998年8月23日", - "星座": "おとめ座", - "身長": "154cm", - "世代": "1期生", - "血液型": "O型" - }, - "kanemuramiku": { - "名前": "金村 美玖", - "生年月日": "2002年9月10日", - "星座": "おとめ座", - "身長": "163.5cm", - "世代": "2期生", - "血液型": "O型" - }, - "kawatahina": { - "名前": "河田 陽菜", - "生年月日": "2001年7月23日", - "星座": "しし座", - "身長": "154.5cm", - "世代": "2期生", - "血液型": "B型" - }, - "kosakanao": { - "名前": "小坂 菜緒", - "生年月日": "2002年9月7日", - "星座": "おとめ座", - "身長": "161.8cm", - "世代": "2期生", - "血液型": "O型" - }, - "tomitasuzuka": { - "名前": "富田 鈴花", - "生年月日": "2001年1月18日", - "星座": "やぎ座", - "身長": "165cm", - "世代": "2期生", - "血液型": "A型" - }, - "nibuakari": { - "名前": "丹生 明里", - "生年月日": "2001年2月15日", - "星座": "みずがめ座", - "身長": "157cm", - "世代": "2期生", - "血液型": "AB型" - }, - "hamagishihiyori": { - "名前": "濱岸 ひより", - "生年月日": "2002年9月28日", - "星座": "てんびん座", - "身長": "167cm", - "世代": "2期生", - "血液型": "A型" - }, - "matsudakonoka": { - "名前": "松田 好花", - "生年月日": "1999年4月27日", - "星座": "おうし座", - "身長": "157.5cm", - "世代": "2期生", - "血液型": "A型" - }, - "miyatamanamo": { - "名前": "宮田 愛萌", - "生年月日": "1998年4月28日", - "星座": "おうし座", - "身長": "158.6cm", - "世代": "2期生", - "血液型": "A型" - }, - "watanabemiho": { - "名前": "渡邉 美穂", - "生年月日": "2000年2月24日", - "星座": "うお座", - "身長": "158.2cm", - "世代": "2期生", - "血液型": "A型" - }, - "kamimurahinano": { - "名前": "上村 ひなの", - "生年月日": "2004年4月12日", - "星座": "おひつじ座", - "身長": "162.5cm", - "世代": "3期生", - "血液型": "AB型" - }, - "takahashimikuni": { - "名前": "髙橋 未来虹", - "生年月日": "2003年9月27日", - "星座": "てんびん座", - "身長": "169.5cm", - "世代": "3期生", - "血液型": "B型" - }, - "morimotomarii": { - "名前": "森本 茉莉", - "生年月日": "2004年2月23日", - "星座": "うお座", - "身長": "160.8cm", - "世代": "3期生", - "血液型": "A型" - }, - "yamaguchiharuyo": { - "名前": "山口 陽世", - "生年月日": "2004年2月23日", - "星座": "うお座", - "身長": "151.4cm", - "世代": "3期生", - "血液型": "O型" - } -} + "ushiosarina": { + "\u540d\u524d": "\u6f6e \u7d17\u7406\u83dc", + "\u751f\u5e74\u6708\u65e5": "1997\u5e7412\u670826\u65e5", + "\u661f\u5ea7": "\u3084\u304e\u5ea7", + "\u8eab\u9577": "157cm", + "\u8840\u6db2\u578b": "O\u578b", + "generation": "1\u671f\u751f" + }, + "kageyamayuuka": { + "\u540d\u524d": "\u5f71\u5c71 \u512a\u4f73", + "\u751f\u5e74\u6708\u65e5": "2001\u5e745\u67088\u65e5", + "\u661f\u5ea7": "\u304a\u3046\u3057\u5ea7", + "\u8eab\u9577": "155cm", + "\u8840\u6db2\u578b": "O\u578b", + "SNS": "", + "generation": "1\u671f\u751f" + }, + "katoushiho": { + "\u540d\u524d": "\u52a0\u85e4 \u53f2\u5e06", + "\u751f\u5e74\u6708\u65e5": "1998\u5e742\u67082\u65e5", + "\u661f\u5ea7": "\u307f\u305a\u304c\u3081\u5ea7", + "\u8eab\u9577": "160.5cm", + "\u8840\u6db2\u578b": "A\u578b", + "SNS": "", + "generation": "1\u671f\u751f" + }, + "saitoukyouko": { + "\u540d\u524d": "\u9f4a\u85e4 \u4eac\u5b50", + "\u751f\u5e74\u6708\u65e5": "1997\u5e749\u67085\u65e5", + "\u661f\u5ea7": "\u304a\u3068\u3081\u5ea7", + "\u8eab\u9577": "155.5cm", + "\u8840\u6db2\u578b": "A\u578b", + "SNS": "", + "generation": "1\u671f\u751f" + }, + "sasakikumi": { + "\u540d\u524d": "\u4f50\u3005\u6728 \u4e45\u7f8e", + "\u751f\u5e74\u6708\u65e5": "1996\u5e741\u670822\u65e5", + "\u661f\u5ea7": "\u307f\u305a\u304c\u3081\u5ea7", + "\u8eab\u9577": "167.5cm", + "\u8840\u6db2\u578b": "O\u578b", + "SNS": "", + "generation": "1\u671f\u751f" + }, + "sasakimirei": { + "\u540d\u524d": "\u4f50\u3005\u6728 \u7f8e\u73b2", + "\u751f\u5e74\u6708\u65e5": "1999\u5e7412\u670817\u65e5", + "\u661f\u5ea7": "\u3044\u3066\u5ea7", + "\u8eab\u9577": "165cm", + "\u8840\u6db2\u578b": "O\u578b", + "SNS": "", + "generation": "1\u671f\u751f" + }, + "takasemana": { + "\u540d\u524d": "\u9ad8\u702c \u611b\u5948", + "\u751f\u5e74\u6708\u65e5": "1998\u5e749\u670820\u65e5", + "\u661f\u5ea7": "\u304a\u3068\u3081\u5ea7", + "\u8eab\u9577": "157cm", + "\u8840\u6db2\u578b": "A\u578b", + "generation": "1\u671f\u751f" + }, + "takamotoayaka": { + "\u540d\u524d": "\u9ad8\u672c \u5f69\u82b1", + "\u751f\u5e74\u6708\u65e5": "1998\u5e7411\u67082\u65e5", + "\u661f\u5ea7": "\u3055\u305d\u308a\u5ea7", + "\u8eab\u9577": "162cm", + "\u8840\u6db2\u578b": "B\u578b", + "SNS": "", + "generation": "1\u671f\u751f" + }, + "higashimuramei": { + "\u540d\u524d": "\u6771\u6751 \u82bd\u4f9d", + "\u751f\u5e74\u6708\u65e5": "1998\u5e748\u670823\u65e5", + "\u661f\u5ea7": "\u304a\u3068\u3081\u5ea7", + "\u8eab\u9577": "154cm", + "\u8840\u6db2\u578b": "O\u578b", + "SNS": "", + "generation": "1\u671f\u751f" + }, + "kanemuramiku": { + "\u540d\u524d": "\u91d1\u6751 \u7f8e\u7396", + "\u751f\u5e74\u6708\u65e5": "2002\u5e749\u670810\u65e5", + "\u661f\u5ea7": "\u304a\u3068\u3081\u5ea7", + "\u8eab\u9577": "163cm", + "\u8840\u6db2\u578b": "O\u578b", + "SNS": "", + "generation": "2\u671f\u751f" + }, + "kawatahina": { + "\u540d\u524d": "\u6cb3\u7530 \u967d\u83dc", + "\u751f\u5e74\u6708\u65e5": "2001\u5e747\u670823\u65e5", + "\u661f\u5ea7": "\u3057\u3057\u5ea7", + "\u8eab\u9577": "154cm", + "\u8840\u6db2\u578b": "B\u578b", + "generation": "2\u671f\u751f" + }, + "kosakanao": { + "\u540d\u524d": "\u5c0f\u5742 \u83dc\u7dd2", + "\u751f\u5e74\u6708\u65e5": "2002\u5e749\u67087\u65e5", + "\u661f\u5ea7": "\u304a\u3068\u3081\u5ea7", + "\u8eab\u9577": "161cm", + "\u8840\u6db2\u578b": "O\u578b", + "generation": "2\u671f\u751f" + }, + "tomitasuzuka": { + "\u540d\u524d": "\u5bcc\u7530 \u9234\u82b1", + "\u751f\u5e74\u6708\u65e5": "2001\u5e741\u670818\u65e5", + "\u661f\u5ea7": "\u3084\u304e\u5ea7", + "\u8eab\u9577": "165.5cm", + "\u8840\u6db2\u578b": "A\u578b", + "SNS": "", + "generation": "2\u671f\u751f" + }, + "nibuakari": { + "\u540d\u524d": "\u4e39\u751f \u660e\u91cc", + "\u751f\u5e74\u6708\u65e5": "2001\u5e742\u670815\u65e5", + "\u661f\u5ea7": "\u307f\u305a\u304c\u3081\u5ea7", + "\u8eab\u9577": "156.5cm", + "\u8840\u6db2\u578b": "AB\u578b", + "generation": "2\u671f\u751f" + }, + "hamagishihiyori": { + "\u540d\u524d": "\u6ff1\u5cb8 \u3072\u3088\u308a", + "\u751f\u5e74\u6708\u65e5": "2002\u5e749\u670828\u65e5", + "\u661f\u5ea7": "\u3066\u3093\u3073\u3093\u5ea7", + "\u8eab\u9577": "167.5cm", + "\u8840\u6db2\u578b": "A\u578b", + "SNS": "", + "generation": "2\u671f\u751f" + }, + "matsudakonoka": { + "\u540d\u524d": "\u677e\u7530 \u597d\u82b1", + "\u751f\u5e74\u6708\u65e5": "1999\u5e744\u670827\u65e5", + "\u661f\u5ea7": "\u304a\u3046\u3057\u5ea7", + "\u8eab\u9577": "157.5cm", + "\u8840\u6db2\u578b": "A\u578b", + "generation": "2\u671f\u751f" + }, + "miyatamanamo": { + "\u540d\u524d": "\u5bae\u7530 \u611b\u840c", + "\u751f\u5e74\u6708\u65e5": "1998\u5e744\u670828\u65e5", + "\u661f\u5ea7": "\u304a\u3046\u3057\u5ea7", + "\u8eab\u9577": "159.3cm", + "\u8840\u6db2\u578b": "A\u578b", + "SNS": "", + "generation": "2\u671f\u751f" + }, + "kamimurahinano": { + "\u540d\u524d": "\u4e0a\u6751 \u3072\u306a\u306e", + "\u751f\u5e74\u6708\u65e5": "2004\u5e744\u670812\u65e5", + "\u661f\u5ea7": "\u304a\u3072\u3064\u3058\u5ea7", + "\u8eab\u9577": "162.5cm", + "\u8840\u6db2\u578b": "AB\u578b", + "generation": "3\u671f\u751f" + }, + "takahashimikuni": { + "\u540d\u524d": "\u9ad9\u6a4b \u672a\u6765\u8679", + "\u751f\u5e74\u6708\u65e5": "2003\u5e749\u670827\u65e5", + "\u661f\u5ea7": "\u3066\u3093\u3073\u3093\u5ea7", + "\u8eab\u9577": "170cm", + "\u8840\u6db2\u578b": "B\u578b", + "generation": "3\u671f\u751f" + }, + "morimotomarii": { + "\u540d\u524d": "\u68ee\u672c \u8309\u8389", + "\u751f\u5e74\u6708\u65e5": "2004\u5e742\u670823\u65e5", + "\u661f\u5ea7": "\u3046\u304a\u5ea7", + "\u8eab\u9577": "161.1cm", + "\u8840\u6db2\u578b": "A\u578b", + "generation": "3\u671f\u751f" + }, + "yamaguchiharuyo": { + "\u540d\u524d": "\u5c71\u53e3 \u967d\u4e16", + "\u751f\u5e74\u6708\u65e5": "2004\u5e742\u670823\u65e5", + "\u661f\u5ea7": "\u3046\u304a\u5ea7", + "\u8eab\u9577": "151.8cm", + "\u8840\u6db2\u578b": "O\u578b", + "generation": "3\u671f\u751f" + }, + "ishizukatamaki": { + "\u540d\u524d": "\u77f3\u585a \u7476\u5b63", + "\u751f\u5e74\u6708\u65e5": "2004\u5e748\u67086\u65e5", + "\u661f\u5ea7": "\u3057\u3057\u5ea7", + "\u8eab\u9577": "154cm", + "\u8840\u6db2\u578b": "A\u578b", + "generation": "4\u671f\u751f" + }, + "kishihonoka": { + "\u540d\u524d": "\u5cb8 \u5e06\u590f", + "\u751f\u5e74\u6708\u65e5": "2004\u5e748\u670815\u65e5", + "\u661f\u5ea7": "\u3057\u3057\u5ea7", + "\u8eab\u9577": "157cm", + "\u8840\u6db2\u578b": "O\u578b", + "generation": "4\u671f\u751f" + }, + "konishinanami": { + "\u540d\u524d": "\u5c0f\u897f \u590f\u83dc\u5b9f", + "\u751f\u5e74\u6708\u65e5": "2004\u5e7410\u67083\u65e5", + "\u661f\u5ea7": "\u3066\u3093\u3073\u3093\u5ea7", + "\u8eab\u9577": "164cm", + "\u8840\u6db2\u578b": "B\u578b", + "generation": "4\u671f\u751f" + }, + "shimizurio": { + "\u540d\u524d": "\u6e05\u6c34 \u7406\u592e", + "\u751f\u5e74\u6708\u65e5": "2005\u5e741\u670815\u65e5", + "\u661f\u5ea7": "\u3084\u304e\u5ea7", + "\u8eab\u9577": "165cm", + "\u8840\u6db2\u578b": "AB\u578b", + "generation": "4\u671f\u751f" + }, + "shougenjiyouko": { + "\u540d\u524d": "\u6b63\u6e90\u53f8 \u967d\u5b50", + "\u751f\u5e74\u6708\u65e5": "2007\u5e742\u670814\u65e5", + "\u661f\u5ea7": "\u307f\u305a\u304c\u3081\u5ea7", + "\u8eab\u9577": "156.5cm", + "\u8840\u6db2\u578b": "B\u578b", + "generation": "4\u671f\u751f" + }, + "takeuchikirari": { + "\u540d\u524d": "\u7af9\u5185 \u5e0c\u6765\u91cc", + "\u751f\u5e74\u6708\u65e5": "2006\u5e742\u670820\u65e5", + "\u661f\u5ea7": "\u3046\u304a\u5ea7", + "\u8eab\u9577": "153cm", + "\u8840\u6db2\u578b": "AB\u578b", + "generation": "4\u671f\u751f" + }, + "hiraohonoka": { + "\u540d\u524d": "\u5e73\u5c3e \u5e06\u590f", + "\u751f\u5e74\u6708\u65e5": "2003\u5e747\u670831\u65e5", + "\u661f\u5ea7": "\u3057\u3057\u5ea7", + "\u8eab\u9577": "156cm", + "\u8840\u6db2\u578b": "A\u578b", + "generation": "4\u671f\u751f" + }, + "hiraokamitsuki": { + "\u540d\u524d": "\u5e73\u5ca1 \u6d77\u6708", + "\u751f\u5e74\u6708\u65e5": "2002\u5e744\u67089\u65e5", + "\u661f\u5ea7": "\u304a\u3072\u3064\u3058\u5ea7", + "\u8eab\u9577": "157cm", + "\u8840\u6db2\u578b": "A\u578b", + "generation": "4\u671f\u751f" + }, + "fujishimakaho": { + "\u540d\u524d": "\u85e4\u5d8c \u679c\u6b69", + "\u751f\u5e74\u6708\u65e5": "2006\u5e748\u67087\u65e5", + "\u661f\u5ea7": "\u3057\u3057\u5ea7", + "\u8eab\u9577": "158cm", + "\u8840\u6db2\u578b": "\u4e0d\u660e", + "generation": "4\u671f\u751f" + }, + "miyachisumire": { + "\u540d\u524d": "\u5bae\u5730 \u3059\u307f\u308c", + "\u751f\u5e74\u6708\u65e5": "2005\u5e7412\u670831\u65e5", + "\u661f\u5ea7": "\u3084\u304e\u5ea7", + "\u8eab\u9577": "162.2cm", + "\u8840\u6db2\u578b": "\u4e0d\u660e", + "generation": "4\u671f\u751f" + }, + "yamashitaharuka": { + "\u540d\u524d": "\u5c71\u4e0b \u8449\u7559\u82b1", + "\u751f\u5e74\u6708\u65e5": "2003\u5e745\u670820\u65e5", + "\u661f\u5ea7": "\u304a\u3046\u3057\u5ea7", + "\u8eab\u9577": "160cm", + "\u8840\u6db2\u578b": "O\u578b", + "generation": "4\u671f\u751f" + }, + "watanaberina": { + "\u540d\u524d": "\u6e21\u8fba \u8389\u5948", + "\u751f\u5e74\u6708\u65e5": "2009\u5e742\u67087\u65e5", + "\u661f\u5ea7": "\u307f\u305a\u304c\u3081\u5ea7", + "\u8eab\u9577": "151cm", + "\u8840\u6db2\u578b": "A\u578b", + "generation": "4\u671f\u751f" + } +} \ No newline at end of file diff --git a/scraping/hinatazaka/getFacePic.py b/scraping/hinatazaka/getFacePic.py index c5d18e0..f4e68b8 100644 --- a/scraping/hinatazaka/getFacePic.py +++ b/scraping/hinatazaka/getFacePic.py @@ -42,7 +42,7 @@ def scraping_allpic(): # 予想より多く detail が取れているみたいなので # 無理矢理最後のメンバーで終わらせる - if name_ja == '山口 陽世': + if name_ja == '渡辺 莉奈': break def kana2latin(kana):