chore: リンク更新用スクリプトツールのコミット
This commit is contained in:
1 parent
cf35adc48d
commit
a653dcb5a6
122 files changed
+5826
No files matched your search
@@ -0,0 +1,24 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
with open('dungeons/index.html', 'rb') as f:
|
||||||
|
text = f.read().decode('utf-8')
|
||||||
|
|
||||||
|
# ハラタリ修練所 (Hard) を準備中に戻す
|
||||||
|
text = text.replace(
|
||||||
|
'<td><strong>ハラタリ修練所 (Hard)</strong></td>\r\n <td>Lv50 (IL55〜)</td>\r\n <td>非対応</td>\r\n <td>剣闘士コロシアム、百裂拳、マンティコア。</td>\r\n <td><a href="halatali.html">攻略を見る ➜</a></td>',
|
||||||
|
'<td><strong>ハラタリ修練所 (Hard)</strong></td>\r\n <td>Lv50 (IL55〜)</td>\r\n <td>非対応</td>\r\n <td>剣闘士コロシアム、百裂拳、マンティコア。</td>\r\n <td>準備中</td>'
|
||||||
|
)
|
||||||
|
|
||||||
|
# LF環境のフォールバック
|
||||||
|
text = text.replace(
|
||||||
|
'<td><strong>ハラタリ修練所 (Hard)</strong></td>\n <td>Lv50 (IL55〜)</td>\n <td>非対応</td>\n <td>剣闘士コロシアム、百裂拳、マンティコア。</td>\n <td><a href="halatali.html">攻略を見る ➜</a></td>',
|
||||||
|
'<td><strong>ハラタリ修練所 (Hard)</strong></td>\n <td>Lv50 (IL55〜)</td>\n <td>非対応</td>\n <td>剣闘士コロシアム、百裂拳、マンティコア。</td>\n <td>準備中</td>'
|
||||||
|
)
|
||||||
|
|
||||||
|
# BOM付きUTF-8 + CRLFで保存
|
||||||
|
text = text.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [l.rstrip() for l in text.split('\n')]
|
||||||
|
res = '\r\n'.join(lines) + '\r\n'
|
||||||
|
res = res.lstrip('\ufeff')
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + res.encode('utf-8'))
|
||||||
|
print("Fixed Hard link")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/pandemonium_abyssos.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>煉獄編 1〜4層</strong></td>
|
||||||
|
<td>Lv90 (IL605〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>プロトカーバンクル(毒・突進)、ヘーゲモネ、アグディスティス、ヘファイストス(変異創身・概念支配)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>煉獄編 1〜4層</strong></td>
|
||||||
|
<td>Lv90 (IL605〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>プロトカーバンクル(毒・突進)、ヘーゲモネ、アグディスティス、ヘファイストス(変異創身・概念支配)。</td>
|
||||||
|
<td><a href="pandemonium_abyssos.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Pandemonium Abyssos link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>星霊間欠 ハム島</strong></td>
|
||||||
|
<td>Lv90 (IL620〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.4メインID。シャーレアン近海。巨大甲殻類、星霊体の連鎖爆発。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>星霊間欠 ハム島</strong></td>
|
||||||
|
<td>Lv90 (IL620〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.4メインID。シャーレアン近海。巨大甲殻類、星霊体の連鎖爆発。</td>
|
||||||
|
<td><a href="aetherfont.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/aetherfont.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
aet = f.read()
|
||||||
|
aet_lines = [line.rstrip() for line in aet.splitlines()]
|
||||||
|
aet_clean = '\r\n'.join(aet_lines) + '\r\n'
|
||||||
|
with open('dungeons/aetherfont.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + aet_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("星霊間欠 ハム島のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/aglaia.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>輝ける神域 アグライア</strong></td>
|
||||||
|
<td>Lv90 (暁月6.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>十二神第1弾。ビエルゴ(ハンマー移動)、ラールガー(彗星パンチ)、アーゼマ、ナルザル(魂の天秤)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>輝ける神域 アグライア</strong></td>
|
||||||
|
<td>Lv90 (暁月6.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>十二神第1弾。ビエルゴ(ハンマー移動)、ラールガー(彗星パンチ)、アーゼマ、ナルザル(魂の天秤)。</td>
|
||||||
|
<td><a href="aglaia.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Aglaia link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('dungeons/aitiascope.html')
|
||||||
|
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>星海潜航 アイティオン星晶鏡</strong></td>
|
||||||
|
<td>Lv89 (IL520〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>星海深部。リウィア、ルキア、アモンとの因縁決戦。過去の英霊たちの支援。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>星海潜航 アイティオン星晶鏡</strong></td>
|
||||||
|
<td>Lv89 (IL520〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>星海深部。リウィア、ルキア、アモンとの因縁決戦。過去の英霊たちの支援。</td>
|
||||||
|
<td><a href="aitiascope.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('dungeons/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('dungeons/index.html')
|
||||||
|
print("SUCCESS: Updated dungeons/index.html with Aitiascope link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in dungeons/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>創造機関 アナイダアカデミア</strong></td>
|
||||||
|
<td>Lv80 (IL410〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>古代の生物研究所。クラバントゥス、ケツァクウァトル、植物触手。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>創造機関 アナイダアカデミア</strong></td>
|
||||||
|
<td>Lv80 (IL410〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>古代の生物研究所。クラバントゥス、ケツァクウァトル、植物触手。</td>
|
||||||
|
<td><a href="akadaemia_anyder.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/akadaemia_anyder.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
aka = f.read()
|
||||||
|
aka_lines = [line.rstrip() for line in aka.splitlines()]
|
||||||
|
aka_clean = '\r\n'.join(aka_lines) + '\r\n'
|
||||||
|
with open('dungeons/akadaemia_anyder.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + aka_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("創造機関 アナイダアカデミアのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>紅蓮決戦 アラミゴ</strong></td>
|
||||||
|
<td>Lv70 (IL280〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>紅蓮メイン最終ID。帝国軍精鋭、ゼノス・イェー・ガルヴァス決戦。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>紅蓮決戦 アラミゴ</strong></td>
|
||||||
|
<td>Lv70 (IL280〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>紅蓮メイン最終ID。帝国軍精鋭、ゼノス・イェー・ガルヴァス決戦。</td>
|
||||||
|
<td><a href="ala_mhigo.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/ala_mhigo.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
ala = f.read()
|
||||||
|
ala_lines = [line.rstrip() for line in ala.splitlines()]
|
||||||
|
ala_clean = '\r\n'.join(ala_lines) + '\r\n'
|
||||||
|
with open('dungeons/ala_mhigo.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + ala_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("紅蓮決戦 アラミゴのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'raids/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '天動編 1〜4層' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="alexander_creator.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated raids/index.html for alexander_creator")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in raids/index.html")
|
||||||
|
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
normalize_file('raids/alexander_creator.html')
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/alexander_gordias.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>起動編 1〜4層</strong></td>
|
||||||
|
<td>Lv60 (IL190〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>オプレッサー(粘性誘導)、ゴブリン小隊、リビングリキッド(窒息・ヤクト)、マニピュレーター(隔離・足破壊)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>起動編 1〜4層</strong></td>
|
||||||
|
<td>Lv60 (IL190〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>オプレッサー(粘性誘導)、ゴブリン小隊、リビングリキッド(窒息・ヤクト)、マニピュレーター(隔離・足破壊)。</td>
|
||||||
|
<td><a href="alexander_gordias.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Alexander Gordias link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'raids/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '律動編 1〜4層' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="alexander_midas.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated raids/index.html for alexander_midas")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in raids/index.html")
|
||||||
|
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
normalize_file('raids/alexander_midas.html')
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>近東秘宝 アルザダール海底遺跡群</strong></td>
|
||||||
|
<td>Lv90 (IL565〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.1メインID。海底神殿の秘宝、からくり兵士の射線回避。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>近東秘宝 アルザダール海底遺跡群</strong></td>
|
||||||
|
<td>Lv90 (IL565〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.1メインID。海底神殿の秘宝、からくり兵士の射線回避。</td>
|
||||||
|
<td><a href="alzadaals_legacy.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/alzadaals_legacy.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
alz = f.read()
|
||||||
|
alz_lines = [line.rstrip() for line in alz.splitlines()]
|
||||||
|
alz_clean = '\r\n'.join(alz_lines) + '\r\n'
|
||||||
|
with open('dungeons/alzadaals_legacy.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + alz_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("近東秘宝 アルザダール海底遺跡群のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('dungeons/amaurot.html')
|
||||||
|
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>終末幻想 アーモロート</strong></td>
|
||||||
|
<td>Lv80 (IL410〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>古代都市の滅亡。流星群落下、ビル崩壊、メガセリオンの終末の流星。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>終末幻想 アーモロート</strong></td>
|
||||||
|
<td>Lv80 (IL410〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>古代都市の滅亡。流星群落下、ビル崩壊、メガセリオンの終末の流星。</td>
|
||||||
|
<td><a href="amaurot.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('dungeons/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('dungeons/index.html')
|
||||||
|
print("SUCCESS: Updated dungeons/index.html with Amaurot link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in dungeons/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/pandemonium_anabaseios.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>天獄編 1〜4層</strong></td>
|
||||||
|
<td>Lv90 (IL635〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>コキュートス(武霊憑依)、パンデモニウム、テミス(調停・光闇)、アテナ(パラスの戒律・カロリック)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>天獄編 1〜4層</strong></td>
|
||||||
|
<td>Lv90 (IL635〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>コキュートス(武霊憑依)、パンデモニウム、テミス(調停・光闇)、アテナ(パラスの戒律・カロリック)。</td>
|
||||||
|
<td><a href="pandemonium_anabaseios.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Pandemonium Anabaseios link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>黒風海底 アニドラス・アナムネーシス</strong></td>
|
||||||
|
<td>Lv80 (IL440〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.2メインID。テンペスト深海施設。ルキア、キマイラ、床の排水溝塞ぎ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>黒風海底 アニドラス・アナムネーシス</strong></td>
|
||||||
|
<td>Lv80 (IL440〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.2メインID。テンペスト深海施設。ルキア、キマイラ、床の排水溝塞ぎ。</td>
|
||||||
|
<td><a href="anamesis_anyder.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/anamesis_anyder.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
ana = f.read()
|
||||||
|
ana_lines = [line.rstrip() for line in ana.splitlines()]
|
||||||
|
ana_clean = '\r\n'.join(ana_lines) + '\r\n'
|
||||||
|
with open('dungeons/anamesis_anyder.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + ana_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("黒風海底 アニドラス・アナムネーシスのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/pandemonium_asphodelos.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>辺獄編 1〜4層</strong></td>
|
||||||
|
<td>Lv90 (IL565〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>エリクトニオス(鎖)、ヒッポカムポス、フェイツ、ヘスペロス(劇場展開)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>辺獄編 1〜4層</strong></td>
|
||||||
|
<td>Lv90 (IL565〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>エリクトニオス(鎖)、ヒッポカムポス、フェイツ、ヘスペロス(劇場展開)。</td>
|
||||||
|
<td><a href="pandemonium_asphodelos.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Pandemonium Asphodelos link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>アスラ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="asura.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for asura")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/asura.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'raids/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '邂逅編 1〜5層' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="bahamut_binding_coil.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated raids/index.html for bahamut_binding_coil")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in raids/index.html")
|
||||||
|
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
normalize_file('raids/bahamut_binding_coil.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'raids/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '真成編 1〜4層' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="bahamut_final_coil.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated raids/index.html for bahamut_final_coil")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in raids/index.html")
|
||||||
|
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
normalize_file('raids/bahamut_final_coil.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'raids/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '侵攻編 1〜4層' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="bahamut_second_coil.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated raids/index.html for bahamut_second_coil")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in raids/index.html")
|
||||||
|
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
normalize_file('raids/bahamut_second_coil.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>バルバリシア討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="barbariccia.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for barbariccia")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/barbariccia.html')
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>伝統試練 バルダム覇道</strong></td>
|
||||||
|
<td>Lv65 (IL250〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>アジムステップの試練。ボス2は「攻撃禁止・ギミック回避専念テスト」。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>伝統試練 バルダム覇道</strong></td>
|
||||||
|
<td>Lv65 (IL250〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>アジムステップの試練。ボス2は「攻撃禁止・ギミック回避専念テスト」。</td>
|
||||||
|
<td><a href="bardams_mettle.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/bardams_mettle.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
bar = f.read()
|
||||||
|
bar_lines = [line.rstrip() for line in bar.splitlines()]
|
||||||
|
bar_clean = '\r\n'.join(bar_lines) + '\r\n'
|
||||||
|
with open('dungeons/bardams_mettle.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + bar_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("伝統試練 バルダム覇道のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if 'ビスマルク討滅戦 / 極ビスマルク' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="bismarck.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for bismarck")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/bismarck.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '白虎征魂戦 / 極白虎' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="byakko.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for byakko")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/byakko.html')
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>巨砲要塞 カストルム・アバニア</strong></td>
|
||||||
|
<td>Lv69 (IL260〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ギラバニア山岳地帯の帝国要塞。三属性カプセル、フォルドラ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>巨砲要塞 カストルム・アバニア</strong></td>
|
||||||
|
<td>Lv69 (IL260〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ギラバニア山岳地帯の帝国要塞。三属性カプセル、フォルドラ。</td>
|
||||||
|
<td><a href="castrum_abania.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/castrum_abania.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
cas = f.read()
|
||||||
|
cas_lines = [line.rstrip() for line in cas.splitlines()]
|
||||||
|
cas_clean = '\r\n'.join(cas_lines) + '\r\n'
|
||||||
|
with open('dungeons/castrum_abania.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + cas_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("巨砲要塞 カストルム・アバニアのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>ダイヤウェポン破壊作戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="diamond_weapon.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for diamond_weapon")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/diamond_weapon.html')
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('dungeons/dohn_mheg.html')
|
||||||
|
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>水妖幻園 ドォー・メグ</strong></td>
|
||||||
|
<td>Lv73 (IL380〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>妖精郷の幻影水脈。水脈綱渡り、カエル変身、幻惑のインク・グァポ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>水妖幻園 ドォー・メグ</strong></td>
|
||||||
|
<td>Lv73 (IL380〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>妖精郷の幻影水脈。水脈綱渡り、カエル変身、幻惑のインク・グァポ。</td>
|
||||||
|
<td><a href="dohn_mheg.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('dungeons/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('dungeons/index.html')
|
||||||
|
print("SUCCESS: Updated dungeons/index.html with Dohn Mheg link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in dungeons/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>解放決戦 ドマ城</strong></td>
|
||||||
|
<td>Lv67 (IL255〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ドマ解放戦。帝国軍迎撃、ガンシップ爆撃、強化グリーンワート。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>解放決戦 ドマ城</strong></td>
|
||||||
|
<td>Lv67 (IL255〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ドマ解放戦。帝国軍迎撃、ガンシップ爆撃、強化グリーンワート。</td>
|
||||||
|
<td><a href="doma_castle.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/doma_castle.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
dom = f.read()
|
||||||
|
dom_lines = [line.rstrip() for line in dom.splitlines()]
|
||||||
|
dom_clean = '\r\n'.join(dom_lines) + '\r\n'
|
||||||
|
with open('dungeons/doma_castle.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + dom_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("解放決戦 ドマ城のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('trials/the_dying_gasp.html')
|
||||||
|
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>ハーデス討滅戦</strong></td>
|
||||||
|
<td>Lv80 (IL410〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td><strong>【漆黒ラスボス】</strong> エメトセルク。古代人の幻影、深淵の記憶。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>ハーデス討滅戦</strong></td>
|
||||||
|
<td>Lv80 (IL410〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td><strong>【漆黒ラスボス】</strong> エメトセルク。古代人の幻影、深淵の記憶。</td>
|
||||||
|
<td><a href="the_dying_gasp.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('trials/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
print("SUCCESS: Updated trials/index.html with The Dying Gasp link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in trials/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/eden_gate.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>覚醒編 1〜4層</strong></td>
|
||||||
|
<td>Lv80 (IL440〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>エデン・プライム、ヴォイドウォーカー(遅延ギミック)、リヴァイアサン、タイタン(車形態・ボム)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>覚醒編 1〜4層</strong></td>
|
||||||
|
<td>Lv80 (IL440〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>エデン・プライム、ヴォイドウォーカー(遅延ギミック)、リヴァイアサン、タイタン(車形態・ボム)。</td>
|
||||||
|
<td><a href="eden_gate.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Eden Gate link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/eden_promise.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>再生編 1〜4層</strong></td>
|
||||||
|
<td>Lv80 (IL500〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>アンブラルアイ、シャドウキーパー、フェイトブレイカー、プロミス・オブ・エデン(闇の巫女・時間圧縮)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>再生編 1〜4層</strong></td>
|
||||||
|
<td>Lv80 (IL500〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>アンブラルアイ、シャドウキーパー、フェイトブレイカー、プロミス・オブ・エデン(闇の巫女・時間圧縮)。</td>
|
||||||
|
<td><a href="eden_promise.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Eden Promise link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/eden_verse.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>共鳴編 1〜4層</strong></td>
|
||||||
|
<td>Lv80 (IL470〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>ラムウ(チャージ)、イフリート&ガルーダ(合体)、ダークアイドル、シヴァ(光の暴走)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>共鳴編 1〜4層</strong></td>
|
||||||
|
<td>Lv80 (IL470〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>ラムウ(チャージ)、イフリート&ガルーダ(合体)、ダークアイドル、シヴァ(光の暴走)。</td>
|
||||||
|
<td><a href="eden_verse.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Eden Verse link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>エメラルドウェポン破壊作戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="emerald_weapon.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for emerald_weapon")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/emerald_weapon.html')
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('trials/the_endsinger.html')
|
||||||
|
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>終焉の戦い</strong></td>
|
||||||
|
<td>Lv90 (IL540〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td><strong>【暁月ラスボス】</strong> 終焉を謳うもの。絶望の惑星激突、祈りのLB。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>終焉の戦い</strong></td>
|
||||||
|
<td>Lv90 (IL540〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td><strong>【暁月ラスボス】</strong> 終焉を謳うもの。絶望の惑星激突、祈りのLB。</td>
|
||||||
|
<td><a href="the_endsinger.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('trials/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
print("SUCCESS: Updated trials/index.html with The Endsinger link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in trials/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/euphrosyne.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>喜びの神域 エウプロシュネ</strong></td>
|
||||||
|
<td>Lv90 (暁月6.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>ノフィカ(豊穣床)、アルジク&ニメーヤ(カードスロウ)、ハルオーネ(氷槍)、メフィナ(月満ち欠け)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>喜びの神域 エウプロシュネ</strong></td>
|
||||||
|
<td>Lv90 (暁月6.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>ノフィカ(豊穣床)、アルジク&ニメーヤ(カードスロウ)、ハルオーネ(氷槍)、メフィナ(月満ち欠け)。</td>
|
||||||
|
<td><a href="euphrosyne.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Euphrosyne link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極バルバリシア討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_barbariccia.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_barbariccia")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_barbariccia.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ダイヤウェポン破壊作戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_diamond_weapon.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_diamond_weapon")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_diamond_weapon.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極エメラルドウェポン破壊作戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_emerald_weapon.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_emerald_weapon")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_emerald_weapon.html')
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('trials/extreme_endsinger.html')
|
||||||
|
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>極終焉の戦い</strong></td>
|
||||||
|
<td>Lv90 (IL580〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>5連惑星衝突の精密安置見極め、テロス、絶望の合唱。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>極終焉の戦い</strong></td>
|
||||||
|
<td>Lv90 (IL580〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>5連惑星衝突の精密安置見極め、テロス、絶望の合唱。</td>
|
||||||
|
<td><a href="extreme_endsinger.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('trials/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
print("SUCCESS: Updated trials/index.html with Extreme Endsinger link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in trials/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ゴルベーザ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_golbez.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_golbez")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_golbez.html')
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('trials/extreme_hades.html')
|
||||||
|
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>極ハーデス討滅戦</strong></td>
|
||||||
|
<td>Lv80 (IL450〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>アシエン三連星ギミック、法則改変、破滅の予兆。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>極ハーデス討滅戦</strong></td>
|
||||||
|
<td>Lv80 (IL450〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>アシエン三連星ギミック、法則改変、破滅の予兆。</td>
|
||||||
|
<td><a href="extreme_hades.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('trials/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
print("SUCCESS: Updated trials/index.html with Extreme Hades link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in trials/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('trials/extreme_hydaelyn.html')
|
||||||
|
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>極ハイデリン討滅戦</strong></td>
|
||||||
|
<td>Lv90 (IL560〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>武器切り替え時の高速安置判断、クリスタル破壊、光の波動。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>極ハイデリン討滅戦</strong></td>
|
||||||
|
<td>Lv90 (IL560〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>武器切り替え時の高速安置判断、クリスタル破壊、光の波動。</td>
|
||||||
|
<td><a href="extreme_hydaelyn.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('trials/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
print("SUCCESS: Updated trials/index.html with Extreme Hydaelyn link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in trials/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極イノセンス討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_innocence.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_innocence")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_innocence.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ラクシュミ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_lakshmi.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_lakshmi")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_lakshmi.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ルビカンテ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_rubicante.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_rubicante")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_rubicante.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ルビーウェポン破壊作戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_ruby_weapon.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_ruby_weapon")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_ruby_weapon.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極神龍討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_shinryu.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_shinryu")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_shinryu.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極スサノオ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_susano.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_susano")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_susano.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ティターニア討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_titania.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_titania")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_titania.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ツクヨミ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_tsukuyomi.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_tsukuyomi")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_tsukuyomi.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ウォーリア・オブ・ライト討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_warrior_of_light.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_warrior_of_light")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_warrior_of_light.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>極ゼロムス討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="extreme_zeromus.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for extreme_zeromus")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/extreme_zeromus.html')
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('trials/extreme_zodiark.html')
|
||||||
|
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>極ゾディアーク討滅戦</strong></td>
|
||||||
|
<td>Lv90 (IL560〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>ステージ回転ギミック完全見極め、リンクス・オブ・ダークネス。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>極ゾディアーク討滅戦</strong></td>
|
||||||
|
<td>Lv90 (IL560〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">極 (High-End)</strong></td>
|
||||||
|
<td>ステージ回転ギミック完全見極め、リンクス・オブ・ダークネス。</td>
|
||||||
|
<td><a href="extreme_zodiark.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('trials/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
print("SUCCESS: Updated trials/index.html with Extreme Zodiark link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in trials/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>幻白虎討滅戦(現行パッチ開催)</strong></td>
|
||||||
|
<td>Lv100 (ILシンク)</td>
|
||||||
|
<td>幻討滅戦</td>
|
||||||
|
<td>極白虎を最新Lv100で再現。ソーチョーの幻想盤、高額マウント・ミニオン。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>幻白虎討滅戦(現行パッチ開催)</strong></td>
|
||||||
|
<td>Lv100 (ILシンク)</td>
|
||||||
|
<td>幻討滅戦</td>
|
||||||
|
<td>極白虎を最新Lv100で再現。ソーチョーの幻想盤、高額マウント・ミニオン。</td>
|
||||||
|
<td><a href="faux_byakko.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/faux_byakko.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
faux = f.read()
|
||||||
|
faux_lines = [line.rstrip() for line in faux.splitlines()]
|
||||||
|
faux_clean = '\r\n'.join(faux_lines) + '\r\n'
|
||||||
|
with open('trials/faux_byakko.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + faux_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("幻白虎討滅戦のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>ギルガメッシュ討伐戦 / 真ギルガメッシュ</strong></td>
|
||||||
|
<td>Lv50 (IL50〜/90〜)</td>
|
||||||
|
<td>ノーマル / 真</td>
|
||||||
|
<td>エンキドゥとの共闘。ニワトリ化デバフ、カエル変化。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>ギルガメッシュ討伐戦 / 真ギルガメッシュ</strong></td>
|
||||||
|
<td>Lv50 (IL50〜/90〜)</td>
|
||||||
|
<td>ノーマル / 真</td>
|
||||||
|
<td>エンキドゥとの共闘。ニワトリ化デバフ、カエル変化。</td>
|
||||||
|
<td><a href="gilgamesh.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/gilgamesh.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
gil = f.read()
|
||||||
|
gil_lines = [line.rstrip() for line in gil.splitlines()]
|
||||||
|
gil_clean = '\r\n'.join(gil_lines) + '\r\n'
|
||||||
|
with open('trials/gilgamesh.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + gil_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("ギルガメッシュのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>ゴルベーザ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="golbez.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for golbez")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/golbez.html')
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>善王モグル・モグXII世 / 極モグ</strong></td>
|
||||||
|
<td>Lv50 (IL54〜/80〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>家臣モグ7体のHP削り調整、闘魂注入、メメント・モーグリ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>善王モグル・モグXII世 / 極モグ</strong></td>
|
||||||
|
<td>Lv50 (IL54〜/80〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>家臣モグ7体のHP削り調整、闘魂注入、メメント・モーグリ。</td>
|
||||||
|
<td><a href="good_king_moggle_mog.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/good_king_moggle_mog.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
mog = f.read()
|
||||||
|
mog_lines = [line.rstrip() for line in mog.splitlines()]
|
||||||
|
mog_clean = '\r\n'.join(mog_lines) + '\r\n'
|
||||||
|
with open('trials/good_king_moggle_mog.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + mog_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("善王モグル・モグXII世のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>魔法宮殿 グラン・コスモス</strong></td>
|
||||||
|
<td>Lv80 (IL430〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.1メインID。家具燃やしギミック、ホウキの誘導掃除、ルゴス。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>魔法宮殿 グラン・コスモス</strong></td>
|
||||||
|
<td>Lv80 (IL430〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.1メインID。家具燃やしギミック、ホウキの誘導掃除、ルゴス。</td>
|
||||||
|
<td><a href="grand_cosmos.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/grand_cosmos.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
gra = f.read()
|
||||||
|
gra_lines = [line.rstrip() for line in gra.splitlines()]
|
||||||
|
gra_clean = '\r\n'.join(gra_lines) + '\r\n'
|
||||||
|
with open('dungeons/grand_cosmos.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + gra_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("魔法宮殿 グラン・コスモスのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>漆黒決戦 ノルヴラント</strong></td>
|
||||||
|
<td>Lv80 (IL460〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.3メインID。ノルヴラント全土の決戦。幻影の英雄たちとの激突。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>漆黒決戦 ノルヴラント</strong></td>
|
||||||
|
<td>Lv80 (IL460〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.3メインID。ノルヴラント全土の決戦。幻影の英雄たちとの激突。</td>
|
||||||
|
<td><a href="heroes_gauntlet.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/heroes_gauntlet.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
her = f.read()
|
||||||
|
her_lines = [line.rstrip() for line in her.splitlines()]
|
||||||
|
her_clean = '\r\n'.join(her_lines) + '\r\n'
|
||||||
|
with open('dungeons/heroes_gauntlet.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + her_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("漆黒決戦 ノルヴラントのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('dungeons/holminster_switch.html')
|
||||||
|
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>殺戮郷村 ホルミンスター</strong></td>
|
||||||
|
<td>Lv71 (IL370〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>漆黒フェイス初解禁ID。罪喰いの襲撃、フィリアの不可視回転突進。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>殺戮郷村 ホルミンスター</strong></td>
|
||||||
|
<td>Lv71 (IL370〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>漆黒フェイス初解禁ID。罪喰いの襲撃、フィリアの不可視回転突進。</td>
|
||||||
|
<td><a href="holminster_switch.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('dungeons/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('dungeons/index.html')
|
||||||
|
print("SUCCESS: Updated dungeons/index.html with Holminster link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in dungeons/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>イノセンス討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="innocence.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for innocence")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/innocence.html')
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('dungeons/ktisis_hyperboreia.html')
|
||||||
|
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>創造環境 ヒュペルボレア造物院</strong></td>
|
||||||
|
<td>Lv87 (IL515〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>エルピスの研究施設。古代人(エメトセルク、ヒュトロダエウス、ヴェーネス)と共闘可能。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>創造環境 ヒュペルボレア造物院</strong></td>
|
||||||
|
<td>Lv87 (IL515〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>エルピスの研究施設。古代人(エメトセルク、ヒュトロダエウス、ヴェーネス)と共闘可能。</td>
|
||||||
|
<td><a href="ktisis_hyperboreia.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('dungeons/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('dungeons/index.html')
|
||||||
|
print("SUCCESS: Updated dungeons/index.html with Ktisis Hyperboreia link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in dungeons/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>悪党成敗 クガネ城</strong></td>
|
||||||
|
<td>Lv70 (IL280〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>反乱浪士の立てこもり。からくり人形、ヨウジンボウ(小判拾い)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>悪党成敗 クガネ城</strong></td>
|
||||||
|
<td>Lv70 (IL280〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>反乱浪士の立てこもり。からくり人形、ヨウジンボウ(小判拾い)。</td>
|
||||||
|
<td><a href="kugane_castle.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/kugane_castle.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
kug = f.read()
|
||||||
|
kug_lines = [line.rstrip() for line in kug.splitlines()]
|
||||||
|
kug_clean = '\r\n'.join(kug_lines) + '\r\n'
|
||||||
|
with open('dungeons/kugane_castle.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + kug_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("悪党成敗 クガネ城のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>ラクシュミ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="lakshmi.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for lakshmi")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/lakshmi.html')
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>雪山冥洞 ラピス・マナリス</strong></td>
|
||||||
|
<td>Lv90 (IL605〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.3メインID。ガレマルド山岳部・リーパー発祥の地。カイナッツォ前哨戦。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>雪山冥洞 ラピス・マナリス</strong></td>
|
||||||
|
<td>Lv90 (IL605〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.3メインID。ガレマルド山岳部・リーパー発祥の地。カイナッツォ前哨戦。</td>
|
||||||
|
<td><a href="lapis_manalis.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/lapis_manalis.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
lap = f.read()
|
||||||
|
lap_lines = [line.rstrip() for line in lap.splitlines()]
|
||||||
|
lap_clean = '\r\n'.join(lap_lines) + '\r\n'
|
||||||
|
with open('dungeons/lapis_manalis.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + lap_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("雪山冥洞 ラピス・マナリスのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>真リヴァイアサン / 極リヴァイアサン</strong></td>
|
||||||
|
<td>Lv50 (IL60〜/80〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>船体傾斜(柵破壊・落下死)、水神のヴェール、サハギン増援。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>真リヴァイアサン / 極リヴァイアサン</strong></td>
|
||||||
|
<td>Lv50 (IL60〜/80〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>船体傾斜(柵破壊・落下死)、水神のヴェール、サハギン増援。</td>
|
||||||
|
<td><a href="leviathan.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/leviathan.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
levi = f.read()
|
||||||
|
levi_lines = [line.rstrip() for line in levi.splitlines()]
|
||||||
|
levi_clean = '\r\n'.join(levi_lines) + '\r\n'
|
||||||
|
with open('trials/leviathan.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + levi_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("真リヴァイアサンのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/arcadia_lh1_savage.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級1層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL700〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>クアドラプルクロー、キャットクライム、アクセ箱・強化薬。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級1層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL700〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>クアドラプルクロー、キャットクライム、アクセ箱・強化薬。</td>
|
||||||
|
<td><a href="arcadia_lh1_savage.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/arcadia_lh2_savage.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級2層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL700〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>アラモードドロップ、ラブ・ミー・テンダー誘導、足・頭・手箱。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級2層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL700〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>アラモードドロップ、ラブ・ミー・テンダー誘導、足・頭・手箱。</td>
|
||||||
|
<td><a href="arcadia_lh2_savage.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with LH2 Savage link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/arcadia_lh3_savage.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級3層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL705〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>ボンバリアン・スペシャル、スマッシュインパクト多段軽減、脚箱・硬化薬。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級3層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL705〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>ボンバリアン・スペシャル、スマッシュインパクト多段軽減、脚箱・硬化薬。</td>
|
||||||
|
<td><a href="arcadia_lh3_savage.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with LH3 Savage link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/arcadia_lh4_savage.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級4層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL710〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>前半・後半連続決戦。日没・日の出ギミック、最高峰IL735武器箱・胴箱・マウント。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>ライトヘビー級4層 (零式)</strong></td>
|
||||||
|
<td>Lv100 (IL710〜)</td>
|
||||||
|
<td><strong style="color: #c82333;">零式 (Savage)</strong></td>
|
||||||
|
<td>前半・後半連続決戦。日没・日の出ギミック、最高峰IL735武器箱・胴箱・マウント。</td>
|
||||||
|
<td><a href="arcadia_lh4_savage.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with LH4 Savage link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>深淵潜行 月の地下渓谷</strong></td>
|
||||||
|
<td>Lv90 (IL635〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.5メインID。月面深部・闇の回廊。ゼロムス前哨戦。アントリオン。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>深淵潜行 月の地下渓谷</strong></td>
|
||||||
|
<td>Lv90 (IL635〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ6.5メインID。月面深部・闇の回廊。ゼロムス前哨戦。アントリオン。</td>
|
||||||
|
<td><a href="lunar_subterrane.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/lunar_subterrane.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
lun = f.read()
|
||||||
|
lun_lines = [line.rstrip() for line in lun.splitlines()]
|
||||||
|
lun_clean = '\r\n'.join(lun_lines) + '\r\n'
|
||||||
|
with open('dungeons/lunar_subterrane.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + lun_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("深淵潜行 月の地下渓谷のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>爽涼離宮 マリカの大井戸</strong></td>
|
||||||
|
<td>Lv77 (IL400〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>アム・アレーンの大水路。巨大水車、アルマジロの回転突進、ストーヴ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>爽涼離宮 マリカの大井戸</strong></td>
|
||||||
|
<td>Lv77 (IL400〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>アム・アレーンの大水路。巨大水車、アルマジロの回転突進、ストーヴ。</td>
|
||||||
|
<td><a href="malikahs_well.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/malikahs_well.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
mal = f.read()
|
||||||
|
mal_lines = [line.rstrip() for line in mal.splitlines()]
|
||||||
|
mal_clean = '\r\n'.join(mal_lines) + '\r\n'
|
||||||
|
with open('dungeons/malikahs_well.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + mal_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("爽涼離宮 マリカの大井戸のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>魔術工房 マトーヤの洞窟</strong></td>
|
||||||
|
<td>Lv80 (IL470〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.4メインID。巨大カエル、泥団子転がし、使い魔マザーポークシー。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>魔術工房 マトーヤの洞窟</strong></td>
|
||||||
|
<td>Lv80 (IL470〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.4メインID。巨大カエル、泥団子転がし、使い魔マザーポークシー。</td>
|
||||||
|
<td><a href="matoyas_relict.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/matoyas_relict.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
mat = f.read()
|
||||||
|
mat_lines = [line.rstrip() for line in mat.splitlines()]
|
||||||
|
mat_clean = '\r\n'.join(mat_lines) + '\r\n'
|
||||||
|
with open('dungeons/matoyas_relict.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + mat_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("魔術工房 マトーヤの洞窟のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>偽りのユートピア グルグ火山</strong></td>
|
||||||
|
<td>Lv79 (IL410〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>巨大タロースで突入する空中火山。罪喰い大まとめ、フォーギヴン・ヴェラー。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>偽りのユートピア グルグ火山</strong></td>
|
||||||
|
<td>Lv79 (IL410〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>巨大タロースで突入する空中火山。罪喰い大まとめ、フォーギヴン・ヴェラー。</td>
|
||||||
|
<td><a href="mt_gulg.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/mt_gulg.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
gulg = f.read()
|
||||||
|
gulg_lines = [line.rstrip() for line in gulg.splitlines()]
|
||||||
|
gulg_clean = '\r\n'.join(gulg_lines) + '\r\n'
|
||||||
|
with open('dungeons/mt_gulg.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + gulg_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("偽りのユートピア グルグ火山のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>アシエン・ナブリアレス討滅戦</strong></td>
|
||||||
|
<td>Lv50 (IL90〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td>異次元吸い込み、巨大メテオ衝突阻止(タンク受け)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>アシエン・ナブリアレス討滅戦</strong></td>
|
||||||
|
<td>Lv50 (IL90〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td>異次元吸い込み、巨大メテオ衝突阻止(タンク受け)。</td>
|
||||||
|
<td><a href="nabriales.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/nabriales.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
nab = f.read()
|
||||||
|
nab_lines = [line.rstrip() for line in nab.splitlines()]
|
||||||
|
nab_clean = '\r\n'.join(nab_lines) + '\r\n'
|
||||||
|
with open('trials/nabriales.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + nab_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("ナブリアレスのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>ニーズヘッグ征竜戦 / 極ニーズヘッグ</strong></td>
|
||||||
|
<td>Lv60 (IL205〜/220〜)</td>
|
||||||
|
<td>ノーマル / 極</td>
|
||||||
|
<td>竜詩戦争完結。真紅の珠、竜尾竜翼、堕天のドラゴンダイブ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>ニーズヘッグ征竜戦 / 極ニーズヘッグ</strong></td>
|
||||||
|
<td>Lv60 (IL205〜/220〜)</td>
|
||||||
|
<td>ノーマル / 極</td>
|
||||||
|
<td>竜詩戦争完結。真紅の珠、竜尾竜翼、堕天のドラゴンダイブ。</td>
|
||||||
|
<td><a href="nidhogg.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/nidhogg.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
nidhogg = f.read()
|
||||||
|
nidhogg_lines = [line.rstrip() for line in nidhogg.splitlines()]
|
||||||
|
nidhogg_clean = '\r\n'.join(nidhogg_lines) + '\r\n'
|
||||||
|
with open('trials/nidhogg.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + nidhogg_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("ニーズヘッグ征竜戦のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>闘神オーディン討伐戦</strong></td>
|
||||||
|
<td>Lv50 (IL95〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td>サンゲタル強攻撃、ヴァルクヌート、時間切れ真・斬鉄剣。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>闘神オーディン討伐戦</strong></td>
|
||||||
|
<td>Lv50 (IL95〜)</td>
|
||||||
|
<td>ノーマル (8人)</td>
|
||||||
|
<td>サンゲタル強攻撃、ヴァルクヌート、時間切れ真・斬鉄剣。</td>
|
||||||
|
<td><a href="odin.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/odin.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
odin = f.read()
|
||||||
|
odin_lines = [line.rstrip() for line in odin.splitlines()]
|
||||||
|
odin_clean = '\r\n'.join(odin_lines) + '\r\n'
|
||||||
|
with open('trials/odin.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + odin_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("闘神オーディンのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/omega_alphascape.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>アルファ編 1〜4層</strong></td>
|
||||||
|
<td>Lv70 (IL375〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>カオス(風土火水)、ミドガルズオルム、オメガM/F(連携・シールド/ブレード)、ファイナルオメガ(ハローワールド)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>アルファ編 1〜4層</strong></td>
|
||||||
|
<td>Lv70 (IL375〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>カオス(風土火水)、ミドガルズオルム、オメガM/F(連携・シールド/ブレード)、ファイナルオメガ(ハローワールド)。</td>
|
||||||
|
<td><a href="omega_alphascape.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Omega Alphascape link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/omega_deltascape.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>デルタ編 1〜4層</strong></td>
|
||||||
|
<td>Lv70 (IL315〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>アルテ・ロイテ、カタストロフィー、ハルカルナッソス、エクスデス(ブラックホール・ネオエクスデス)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>デルタ編 1〜4層</strong></td>
|
||||||
|
<td>Lv70 (IL315〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>アルテ・ロイテ、カタストロフィー、ハルカルナッソス、エクスデス(ブラックホール・ネオエクスデス)。</td>
|
||||||
|
<td><a href="omega_deltascape.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Omega Deltascape link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/omega_sigmascape.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>シグマ編 1〜4層</strong></td>
|
||||||
|
<td>Lv70 (IL345〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>魔列車(幽霊隔離)、チャダヌーク(絵画ギミック)、ガーディアン、ケフカ(ミッシング・妖星乱舞)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>シグマ編 1〜4層</strong></td>
|
||||||
|
<td>Lv70 (IL345〜)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>魔列車(幽霊隔離)、チャダヌーク(絵画ギミック)、ガーディアン、ケフカ(ミッシング・妖星乱舞)。</td>
|
||||||
|
<td><a href="omega_sigmascape.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Omega Sigmascape link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>黄金平原 パガルザン</strong></td>
|
||||||
|
<td>Lv80 (IL490〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.5メインID。アマルジャ族の平原。竜車突進、ルナバハムート。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>黄金平原 パガルザン</strong></td>
|
||||||
|
<td>Lv80 (IL490〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>パッチ5.5メインID。アマルジャ族の平原。竜車突進、ルナバハムート。</td>
|
||||||
|
<td><a href="paglthan.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/paglthan.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
pag = f.read()
|
||||||
|
pag_lines = [line.rstrip() for line in pag.splitlines()]
|
||||||
|
pag_clean = '\r\n'.join(pag_lines) + '\r\n'
|
||||||
|
with open('dungeons/paglthan.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + pag_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("黄金平原 パガルザンのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/puppets_bunker.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>人形タチノ軍事基地</strong></td>
|
||||||
|
<td>Lv80 (漆黒5.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>リオラ、飛行ユニット、アノッグ・コノッグ、融合体(エネルギー弾幕・飛行形態)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>人形タチノ軍事基地</strong></td>
|
||||||
|
<td>Lv80 (漆黒5.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>リオラ、飛行ユニット、アノッグ・コノッグ、融合体(エネルギー弾幕・飛行形態)。</td>
|
||||||
|
<td><a href="puppets_bunker.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Puppets Bunker link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>古跡探索 キタンナ神影洞</strong></td>
|
||||||
|
<td>Lv75 (IL390〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ラケティカ大森林の古代ロンカ遺跡。肩の像からの熱線照射、エロースの毒沼。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>古跡探索 キタンナ神影洞</strong></td>
|
||||||
|
<td>Lv75 (IL390〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ラケティカ大森林の古代ロンカ遺跡。肩の像からの熱線照射、エロースの毒沼。</td>
|
||||||
|
<td><a href="qitana_ravel.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/qitana_ravel.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
qit = f.read()
|
||||||
|
qit_lines = [line.rstrip() for line in qit.splitlines()]
|
||||||
|
qit_clean = '\r\n'.join(qit_lines) + '\r\n'
|
||||||
|
with open('dungeons/qitana_ravel.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + qit_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("古跡探索 キタンナ神影洞のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/rabanastre.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>失われた都 ラバナスタ</strong></td>
|
||||||
|
<td>Lv70 (紅蓮4.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>FFTコラボ第1弾。マティウス、ロフォカレ、ハシュマリム、冷血剣士アルガス(真偽仮面)。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>失われた都 ラバナスタ</strong></td>
|
||||||
|
<td>Lv70 (紅蓮4.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>FFTコラボ第1弾。マティウス、ロフォカレ、ハシュマリム、冷血剣士アルガス(真偽仮面)。</td>
|
||||||
|
<td><a href="rabanastre.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target in text:
|
||||||
|
text = text.replace(target, replacement)
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("SUCCESS: Updated raids/index.html with Rabanastre link.")
|
||||||
|
else:
|
||||||
|
print("ERROR: Target string not found in raids/index.html")
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>真ラムウ / 極ラムウ</strong></td>
|
||||||
|
<td>Lv50 (IL65〜/85〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>避雷針玉集め(タンク蓄電バフスイッチ)、カオスストライク解除。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>真ラムウ / 極ラムウ</strong></td>
|
||||||
|
<td>Lv50 (IL65〜/85〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>避雷針玉集め(タンク蓄電バフスイッチ)、カオスストライク解除。</td>
|
||||||
|
<td><a href="ramuh.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/ramuh.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
ramuh = f.read()
|
||||||
|
ramuh_lines = [line.rstrip() for line in ramuh.splitlines()]
|
||||||
|
ramuh_clean = '\r\n'.join(ramuh_lines) + '\r\n'
|
||||||
|
with open('trials/ramuh.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + ramuh_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("真ラムウのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if 'リオレウス狩猟戦 / 極リオレウス' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="rathalos.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for rathalos")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/rathalos.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if 'ラーヴァナ討滅戦 / 極ラーヴァナ' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="ravana.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for ravana")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/ravana.html')
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
content = content.lstrip('\ufeff')
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
norm_lines = []
|
||||||
|
prev_blank = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_blank:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = True
|
||||||
|
else:
|
||||||
|
norm_lines.append(line)
|
||||||
|
prev_blank = False
|
||||||
|
result = '\r\n'.join(norm_lines) + '\r\n'
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + result.encode('utf-8'))
|
||||||
|
|
||||||
|
normalize_file('raids/ridorana.html')
|
||||||
|
|
||||||
|
with open('raids/index.html', 'r', encoding='utf-8') as f:
|
||||||
|
text = f.read()
|
||||||
|
|
||||||
|
# リドルアナ更新
|
||||||
|
target_ridorana = """ <tr>
|
||||||
|
<td><strong>封じられた聖塔 リドルアナ</strong></td>
|
||||||
|
<td>Lv70 (紅蓮4.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>ファムフリート、ベリアス(時間停止)、労働八号(算数ギミック素数計算)、鬼龍ヤズマット。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement_ridorana = """ <tr>
|
||||||
|
<td><strong>封じられた聖塔 リドルアナ</strong></td>
|
||||||
|
<td>Lv70 (紅蓮4.x)</td>
|
||||||
|
<td>24人 (A/B/C)</td>
|
||||||
|
<td>ファムフリート、ベリアス(時間停止)、労働八号(算数ギミック素数計算)、鬼龍ヤズマット。</td>
|
||||||
|
<td><a href="ridorana.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
# クルーザー級・ヘビー級更新
|
||||||
|
target_cruiser = """ <tr>
|
||||||
|
<td><strong>クルーザー級(1〜4層)</strong></td>
|
||||||
|
<td>Lv100 (パッチ7.2)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>パッチ7.2実装予定。第2弾レイドシリーズ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><strong>ヘビー級(1〜4層)</strong></td>
|
||||||
|
<td>Lv100 (パッチ7.4)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>パッチ7.4実装予定。アルカディア完結編。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement_cruiser = """ <tr>
|
||||||
|
<td><strong>クルーザー級(1〜4層)</strong></td>
|
||||||
|
<td>Lv100 (パッチ7.2)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>パッチ7.2実装予定。第2弾レイドシリーズ。</td>
|
||||||
|
<td><span style="color: #666;">パッチ7.2実装予定</span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><strong>ヘビー級(1〜4層)</strong></td>
|
||||||
|
<td>Lv100 (パッチ7.4)</td>
|
||||||
|
<td>ノーマル / 零式</td>
|
||||||
|
<td>パッチ7.4実装予定。アルカディア完結編。</td>
|
||||||
|
<td><span style="color: #666;">パッチ7.4実装予定</span></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target_ridorana in text:
|
||||||
|
text = text.replace(target_ridorana, replacement_ridorana)
|
||||||
|
print("SUCCESS: Target ridorana found and replaced")
|
||||||
|
else:
|
||||||
|
print("ERROR: target_ridorana not found")
|
||||||
|
|
||||||
|
if target_cruiser in text:
|
||||||
|
text = text.replace(target_cruiser, replacement_cruiser)
|
||||||
|
print("SUCCESS: Target cruiser found and replaced")
|
||||||
|
else:
|
||||||
|
print("ERROR: target_cruiser not found")
|
||||||
|
|
||||||
|
with open('raids/index.html', 'w', encoding='utf-8') as f:
|
||||||
|
f.write(text)
|
||||||
|
|
||||||
|
normalize_file('raids/index.html')
|
||||||
|
print("Successfully processed raids/index.html")
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>ルビカンテ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="rubicante.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for rubicante")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/rubicante.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>ルビーウェポン破壊作戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="ruby_weapon.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for ruby_weapon")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/ruby_weapon.html')
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '青龍征魂戦 / 極青龍' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="seiryu.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for seiryu")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/seiryu.html')
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>魔神セフィロト討滅戦 / 極セフィロト</strong></td>
|
||||||
|
<td>Lv60 (IL190〜/205〜)</td>
|
||||||
|
<td>ノーマル / 極</td>
|
||||||
|
<td>三闘神。巨大化後の緑黄デバフタケノコ踏み、巨大パンチ。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>魔神セフィロト討滅戦 / 極セフィロト</strong></td>
|
||||||
|
<td>Lv60 (IL190〜/205〜)</td>
|
||||||
|
<td>ノーマル / 極</td>
|
||||||
|
<td>三闘神。巨大化後の緑黄デバフタケノコ踏み、巨大パンチ。</td>
|
||||||
|
<td><a href="sephirot.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/sephirot.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
sephirot = f.read()
|
||||||
|
sephirot_lines = [line.rstrip() for line in sephirot.splitlines()]
|
||||||
|
sephirot_clean = '\r\n'.join(sephirot_lines) + '\r\n'
|
||||||
|
with open('trials/sephirot.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + sephirot_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("魔神セフィロト討滅戦のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>神龍討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="shinryu.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for shinryu")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/shinryu.html')
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>海底宮殿 紫水宮</strong></td>
|
||||||
|
<td>Lv63 (IL245〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>紅玉海の竜宮城。玉手箱でおじいさん化して大技回避、紫水妖女。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>海底宮殿 紫水宮</strong></td>
|
||||||
|
<td>Lv63 (IL245〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>紅玉海の竜宮城。玉手箱でおじいさん化して大技回避、紫水妖女。</td>
|
||||||
|
<td><a href="shisui.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/shisui.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
shi = f.read()
|
||||||
|
shi_lines = [line.rstrip() for line in shi.splitlines()]
|
||||||
|
shi_clean = '\r\n'.join(shi_lines) + '\r\n'
|
||||||
|
with open('dungeons/shisui.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + shi_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("海底宮殿 紫水宮のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>真シヴァ / 極シヴァ</strong></td>
|
||||||
|
<td>Lv50 (IL80〜/95〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>剣(頭割り)と杖(散開)の切り替え、アイシクルインパクト、氷結床。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>真シヴァ / 極シヴァ</strong></td>
|
||||||
|
<td>Lv50 (IL80〜/95〜)</td>
|
||||||
|
<td>真 / 極 (8人)</td>
|
||||||
|
<td>剣(頭割り)と杖(散開)の切り替え、アイシクルインパクト、氷結床。</td>
|
||||||
|
<td><a href="shiva.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/shiva.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
shiva = f.read()
|
||||||
|
shiva_lines = [line.rstrip() for line in shiva.splitlines()]
|
||||||
|
shiva_clean = '\r\n'.join(shiva_lines) + '\r\n'
|
||||||
|
with open('trials/shiva.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + shiva_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("真シヴァのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>漂流海域 セイレーン海</strong></td>
|
||||||
|
<td>Lv61 (IL240〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ひんがしの国へ向かう幽霊船航路。船幽霊の呪縛、セイレーンの魅了歌。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>漂流海域 セイレーン海</strong></td>
|
||||||
|
<td>Lv61 (IL240〜)</td>
|
||||||
|
<td><strong>対応</strong></td>
|
||||||
|
<td>ひんがしの国へ向かう幽霊船航路。船幽霊の呪縛、セイレーンの魅了歌。</td>
|
||||||
|
<td><a href="sirensong_sea.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/sirensong_sea.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
sir = f.read()
|
||||||
|
sir_lines = [line.rstrip() for line in sir.splitlines()]
|
||||||
|
sir_clean = '\r\n'.join(sir_lines) + '\r\n'
|
||||||
|
with open('dungeons/sirensong_sea.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + sir_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("漂流海域 セイレーン海のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>楽園都市 スマイルトン</strong></td>
|
||||||
|
<td>Lv90 (IL540〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>レポリットの建設都市。スマイリー・フェイス、ビッグ・チーズの爆撃ライン。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>楽園都市 スマイルトン</strong></td>
|
||||||
|
<td>Lv90 (IL540〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>レポリットの建設都市。スマイリー・フェイス、ビッグ・チーズの爆撃ライン。</td>
|
||||||
|
<td><a href="smileton.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/smileton.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
smi = f.read()
|
||||||
|
smi_lines = [line.rstrip() for line in smi.splitlines()]
|
||||||
|
smi_clean = '\r\n'.join(smi_lines) + '\r\n'
|
||||||
|
with open('dungeons/smileton.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + smi_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("楽園都市 スマイルトンのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>女神ソフィア討滅戦 / 極ソフィア</strong></td>
|
||||||
|
<td>Lv60 (IL220〜/235〜)</td>
|
||||||
|
<td>ノーマル / 極</td>
|
||||||
|
<td>天秤ギミック(皿の傾き判定・線数え)、娘の視線。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>女神ソフィア討滅戦 / 極ソフィア</strong></td>
|
||||||
|
<td>Lv60 (IL220〜/235〜)</td>
|
||||||
|
<td>ノーマル / 極</td>
|
||||||
|
<td>天秤ギミック(皿の傾き判定・線数え)、娘の視線。</td>
|
||||||
|
<td><a href="sophia.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/sophia.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
sophia = f.read()
|
||||||
|
sophia_lines = [line.rstrip() for line in sophia.splitlines()]
|
||||||
|
sophia_clean = '\r\n'.join(sophia_lines) + '\r\n'
|
||||||
|
with open('trials/sophia.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + sophia_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("女神ソフィア討滅戦のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('trials/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>皇都イシュガルド防衛戦</strong></td>
|
||||||
|
<td>Lv50 (IL90〜)</td>
|
||||||
|
<td>ソロ改修済</td>
|
||||||
|
<td>雲廊の巨大龍ヴィシャップ迎撃。パッチ6.xによりソロバトル化。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>皇都イシュガルド防衛戦</strong></td>
|
||||||
|
<td>Lv50 (IL90〜)</td>
|
||||||
|
<td>ソロ改修済</td>
|
||||||
|
<td>雲廊の巨大龍ヴィシャップ迎撃。パッチ6.xによりソロバトル化。</td>
|
||||||
|
<td><a href="steps_of_faith.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('trials/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('trials/steps_of_faith.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
steps = f.read()
|
||||||
|
steps_lines = [line.rstrip() for line in steps.splitlines()]
|
||||||
|
steps_clean = '\r\n'.join(steps_lines) + '\r\n'
|
||||||
|
with open('trials/steps_of_faith.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + steps_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("皇都イシュガルド防衛戦のリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with open('dungeons/index.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
target = """ <tr>
|
||||||
|
<td><strong>電脳夢想 スティグマ・フォー</strong></td>
|
||||||
|
<td>Lv90 (IL540〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>オミクロン族の戦闘マトリクス。プロトオメガの召喚、竜型兵器迎撃。</td>
|
||||||
|
<td>準備中</td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
replacement = """ <tr>
|
||||||
|
<td><strong>電脳夢想 スティグマ・フォー</strong></td>
|
||||||
|
<td>Lv90 (IL540〜)</td>
|
||||||
|
<td>非対応</td>
|
||||||
|
<td>オミクロン族の戦闘マトリクス。プロトオメガの召喚、竜型兵器迎撃。</td>
|
||||||
|
<td><a href="stigma_four.html">攻略を見る ➜</a></td>
|
||||||
|
</tr>"""
|
||||||
|
|
||||||
|
if target not in content:
|
||||||
|
print("エラー: ターゲット文字列が見つかりません")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
content = content.replace(target, replacement)
|
||||||
|
lines = [line.rstrip() for line in content.splitlines()]
|
||||||
|
content_clean = '\r\n'.join(lines) + '\r\n'
|
||||||
|
with open('dungeons/index.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + content_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
with open('dungeons/stigma_four.html', 'r', encoding='utf-8-sig') as f:
|
||||||
|
sti = f.read()
|
||||||
|
sti_lines = [line.rstrip() for line in sti.splitlines()]
|
||||||
|
sti_clean = '\r\n'.join(sti_lines) + '\r\n'
|
||||||
|
with open('dungeons/stigma_four.html', 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + sti_clean.encode('utf-8'))
|
||||||
|
|
||||||
|
print("電脳夢想 スティグマ・フォーのリンク更新および正規化が完了しました。")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def normalize_file(filepath):
|
||||||
|
with open(filepath, 'rb') as f:
|
||||||
|
raw = f.read()
|
||||||
|
content = raw.decode('utf-8', errors='replace').lstrip('\ufeff')
|
||||||
|
content = content.replace('\r\n', '\n').replace('\r', '\n')
|
||||||
|
lines = [line.rstrip(' \t') for line in content.split('\n')]
|
||||||
|
cleaned_lines = []
|
||||||
|
prev_empty = False
|
||||||
|
for line in lines:
|
||||||
|
if line == '':
|
||||||
|
if not prev_empty:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = True
|
||||||
|
else:
|
||||||
|
cleaned_lines.append(line)
|
||||||
|
prev_empty = False
|
||||||
|
new_content = '\r\n'.join(cleaned_lines)
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(b'\xef\xbb\xbf' + new_content.encode('utf-8'))
|
||||||
|
print(f"Normalized: {filepath}")
|
||||||
|
|
||||||
|
index_path = 'trials/index.html'
|
||||||
|
with open(index_path, 'r', encoding='utf-8') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
updated = False
|
||||||
|
for i, line in enumerate(lines):
|
||||||
|
if '<strong>スサノオ討滅戦</strong>' in line:
|
||||||
|
for k in range(i, i+6):
|
||||||
|
if '<td>準備中</td>' in lines[k]:
|
||||||
|
lines[k] = lines[k].replace('<td>準備中</td>', '<td><a href="susano.html">攻略を見る ➜</a></td>')
|
||||||
|
updated = True
|
||||||
|
print(f"Replaced line {k+1}")
|
||||||
|
break
|
||||||
|
if updated:
|
||||||
|
break
|
||||||
|
|
||||||
|
if updated:
|
||||||
|
with open(index_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(lines)
|
||||||
|
print("Successfully updated trials/index.html for susano")
|
||||||
|
else:
|
||||||
|
print("Failed to find target row in trials/index.html")
|
||||||
|
|
||||||
|
normalize_file('trials/index.html')
|
||||||
|
normalize_file('trials/susano.html')
|
||||||
Loaded 100 of 122 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user