回答編集履歴

2

修正

2021/03/16 00:57

投稿

jeanbiego
jeanbiego

スコア3966

test CHANGED
@@ -28,11 +28,9 @@
28
28
 
29
29
  ```python3
30
30
 
31
-
32
-
33
31
  image_td = soup.find('td', class_='weather-map-viewarea')
34
32
 
35
- image_td.find("img")["src"]
33
+ print(image_td.find("img")["src"])
36
34
 
37
35
  # 'data/png/20210315184830_0_Z__C_010000_20210315120000_MET_CHT_JCIfsas24_Rjp_JCP600x581_JRcolor_Tjmahp_image.png'
38
36
 

1

追記

2021/03/16 00:57

投稿

jeanbiego
jeanbiego

スコア3966

test CHANGED
@@ -21,3 +21,19 @@
21
21
  sleep(10)
22
22
 
23
23
  ```
24
+
25
+
26
+
27
+ src取得はこちら
28
+
29
+ ```python3
30
+
31
+
32
+
33
+ image_td = soup.find('td', class_='weather-map-viewarea')
34
+
35
+ image_td.find("img")["src"]
36
+
37
+ # 'data/png/20210315184830_0_Z__C_010000_20210315120000_MET_CHT_JCIfsas24_Rjp_JCP600x581_JRcolor_Tjmahp_image.png'
38
+
39
+ ```