質問編集履歴

1

ご指摘ありがとうございます。Markdown形式で入力しなおしました。

2022/09/06 04:37

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,6 +14,7 @@
14
14
  繰り返しで設定したところは「404 Not Found」になります。
15
15
 
16
16
  ### 該当のソースコード
17
+ ```python
17
18
  from selenium import webdriver
18
19
  from selenium.webdriver.chrome.options import Options
19
20
  from selenium.webdriver.support.ui import WebDriverWait
@@ -69,7 +70,7 @@
69
70
  time.sleep(10) #ファイルのダウンロードのために10秒待機
70
71
  driver.quit() #Close Screen
71
72
 
72
- if __name__ == '__main__': #プログラム開始 第1~9回はURLがそろっていないので単独のURLを入力
73
+ if __name__ == '__main__': #プログラム開始 第1~9回はURLがそろっていないので単独のURLを入力
73
74
  BlogURLList=['https://www.worldts.com/english-writing/eigoronbunwriting-1/index.html',
74
75
  'https://www.worldts.com/english-writing/eigoronbun-equipment/index.html',
75
76
  'https://www.worldts.com/english-writing/eigoronbun3/index.html',
@@ -81,7 +82,7 @@
81
82
  'https://www.worldts.com/english-writing/eigoronbun-topheavy/index.html',
82
83
  'https://worldts.com/english-writing/no13-comments/index.html',
83
84
  'https://worldts.com/english-writing/396/index.html',
84
- 'https://worldts.com/english-writing/398/index.html']
85
+ 'https://worldts.com/english-writing/398/index.html']
85
86
  for BlogURL in BlogURLList:
86
87
  main_WebToPDF(BlogURL)
87
88
 
@@ -90,6 +91,8 @@
90
91
  BlogURLList=['https://worldts.com/english-writing/eigo-ronbun{i+1}/index.html']
91
92
  for BlogURL in BlogURLList:
92
93
  main_WebToPDF(BlogURL)
94
+ ```
95
+
93
96
 
94
97
  ### 試したこと
95
98