質問編集履歴
1
target_urlとscrp.text.split(" = ", 1)[1]
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
target_url = "https://www.youtube.com/
|
41
|
+
target_url = "https://www.youtube.com/watch?v=xxxxx(取得したい動画のURL)"
|
42
42
|
|
43
43
|
dict_str = ""
|
44
44
|
|
@@ -90,7 +90,7 @@
|
|
90
90
|
|
91
91
|
if "window[\"ytInitialData\"]" in scrp.text:
|
92
92
|
|
93
|
-
dict_str = scrp.text.split(" = ")[1]
|
93
|
+
dict_str = scrp.text.split(" = " , 1)[1]
|
94
94
|
|
95
95
|
|
96
96
|
|