回答編集履歴
1
質問変更にようr回答追加
test
CHANGED
@@ -15,3 +15,43 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
ではないのでしょうか。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
質問が変更されたようですね。
|
22
|
+
|
23
|
+
それならこんな感じです。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
```python
|
28
|
+
|
29
|
+
>>> horse_len_list = [ho.find_next_siblings()[1] for ho in soup.find_all("td",class_="order")]
|
30
|
+
|
31
|
+
>>> for x in horse_len_list:
|
32
|
+
|
33
|
+
... print(x)
|
34
|
+
|
35
|
+
...
|
36
|
+
|
37
|
+
<td class="number">9</td>
|
38
|
+
|
39
|
+
<td class="number">7</td>
|
40
|
+
|
41
|
+
<td class="number">3</td>
|
42
|
+
|
43
|
+
<td class="number">8</td>
|
44
|
+
|
45
|
+
<td class="number">4</td>
|
46
|
+
|
47
|
+
<td class="number">10</td>
|
48
|
+
|
49
|
+
<td class="number">6</td>
|
50
|
+
|
51
|
+
<td class="number">5</td>
|
52
|
+
|
53
|
+
<td class="number">2</td>
|
54
|
+
|
55
|
+
<td class="number">1</td>
|
56
|
+
|
57
|
+
```
|