回答編集履歴

2

修正

2020/12/15 10:21

投稿

nto
nto

スコア1438

test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  script = target.string
22
22
 
23
- text = script .split('$')[0]
23
+ text = script.split('$')[0]
24
24
 
25
25
  for m in re.finditer(r'{.+}', text):
26
26
 

1

修正

2020/12/15 10:21

投稿

nto
nto

スコア1438

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.text
21
+ script = target.string
22
22
 
23
23
  text = script .split('$')[0]
24
24