YoheiHayamizu commited on
Commit
111299a
·
1 Parent(s): a35fa03
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -33,7 +33,10 @@ if st.button("株価を知りたい"):
33
  res = requests.get(url)
34
  soup = BeautifulSoup(res.text, "html.parser")
35
 
36
- _text = soup.find("div", attrs={"class": "m-stockInfo_top_left"}).text
 
 
 
37
 
38
  content = unicodedata.normalize("NFKD", _text)
39
  st.session_state.content = re.sub("[\r\t\n]+", " ", content)
 
33
  res = requests.get(url)
34
  soup = BeautifulSoup(res.text, "html.parser")
35
 
36
+ _text = soup.find("div", attrs={"class": "m-stockInfo_top_left"})
37
+ _text = _text.text
38
+
39
+ print(_text)
40
 
41
  content = unicodedata.normalize("NFKD", _text)
42
  st.session_state.content = re.sub("[\r\t\n]+", " ", content)