Spaces:
Runtime error
Runtime error
masa729406
commited on
Commit
Β·
932aa7b
1
Parent(s):
cf1740f
Update app.py
Browse files
app.py
CHANGED
@@ -2,29 +2,30 @@ import altair
|
|
2 |
|
3 |
import gradio as gr
|
4 |
from math import sqrt
|
5 |
-
import
|
|
|
|
|
6 |
|
7 |
matplotlib.use("Agg")
|
8 |
|
9 |
import matplotlib.pyplot as plt
|
10 |
import numpy as np
|
11 |
import plotly.express as px
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# WebγγΌγΈγεεΎγγ¦θ§£ζγγ
|
15 |
load_url = "https://www.football-lab.jp/kyot/match/"
|
16 |
html = requests.get(load_url)
|
17 |
soup = bs(html.content, "html.parser")
|
18 |
|
19 |
-
pip install beautifulsoup4
|
20 |
-
pip install requests_html
|
21 |
-
import requests
|
22 |
-
from bs4 import BeautifulSoup as bs
|
23 |
-
from requests_html import AsyncHTMLSession
|
24 |
|
25 |
-
import pandas as pd
|
26 |
-
from datetime import datetime
|
27 |
-
from IPython.display import display
|
28 |
|
29 |
url23 = 'https://www.football-lab.jp/ka-f/match/'
|
30 |
dfs23 = pd.read_html(url23)
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
from math import sqrt
|
5 |
+
import pandas as pd
|
6 |
+
from datetime import datetime
|
7 |
+
from IPython.display import display
|
8 |
|
9 |
matplotlib.use("Agg")
|
10 |
|
11 |
import matplotlib.pyplot as plt
|
12 |
import numpy as np
|
13 |
import plotly.express as px
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
# pip install beautifulsoup4
|
18 |
+
# pip install requests_html
|
19 |
+
import requests
|
20 |
+
from bs4 import BeautifulSoup as bs
|
21 |
+
from requests_html import AsyncHTMLSession
|
22 |
|
23 |
# WebγγΌγΈγεεΎγγ¦θ§£ζγγ
|
24 |
load_url = "https://www.football-lab.jp/kyot/match/"
|
25 |
html = requests.get(load_url)
|
26 |
soup = bs(html.content, "html.parser")
|
27 |
|
|
|
|
|
|
|
|
|
|
|
28 |
|
|
|
|
|
|
|
29 |
|
30 |
url23 = 'https://www.football-lab.jp/ka-f/match/'
|
31 |
dfs23 = pd.read_html(url23)
|