質問編集履歴
2
html = str(driver.page_source)と修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
file_name = sys.argv[3] #'get.txt'
|
26
26
|
complete_name = os.path.join(download_folder, file_name)
|
27
27
|
file_object = codecs.open(complete_name, "w", "utf-8")
|
28
|
-
html = driver.page_source
|
28
|
+
html = str(driver.page_source)
|
29
29
|
file_object.write(html)
|
30
30
|
driver.close()
|
31
31
|
|
1
説明に不要な#を消去しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,12 +19,8 @@
|
|
19
19
|
|
20
20
|
download_folder = sys.argv[2]
|
21
21
|
|
22
|
-
### 1.Webサイトにアクセスする
|
23
22
|
driver.get(sys.argv[1])#url
|
24
23
|
|
25
|
-
|
26
|
-
# 以下ファイル保存
|
27
|
-
|
28
24
|
save_path = os.path.expanduser('~')
|
29
25
|
file_name = sys.argv[3] #'get.txt'
|
30
26
|
complete_name = os.path.join(download_folder, file_name)
|