回答編集履歴
2
修正
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
script = target.string
|
22
22
|
|
23
|
-
text = script
|
23
|
+
text = script.split('$')[0]
|
24
24
|
|
25
25
|
for m in re.finditer(r'{.+}', text):
|
26
26
|
|
1
修正
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
target = soup_twitter.find('script', text=re.compile(r'var data = '))
|
20
20
|
|
21
|
-
script = target.t
|
21
|
+
script = target.string
|
22
22
|
|
23
23
|
text = script .split('$')[0]
|
24
24
|
|