Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
-
import cloudscraper
|
| 2 |
import os
|
| 3 |
from dotenv import load_dotenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Charger les variables d'environnement (si vous utilisez un .env localement)
|
| 5 |
load_dotenv()
|
| 6 |
#API_KEY = "0be4b0d76de6cf65b81e0a2de91b137f432e5a66e6d0c622d73c4b83e613e948"
|
|
@@ -22,10 +27,6 @@ response = scraper.get(url, headers=headers)
|
|
| 22 |
|
| 23 |
print(response.status_code)
|
| 24 |
print(response.text)
|
| 25 |
-
import warnings
|
| 26 |
-
import logging
|
| 27 |
-
import os
|
| 28 |
-
from dotenv import load_dotenv
|
| 29 |
|
| 30 |
# Load environment variables from .env
|
| 31 |
load_dotenv()
|
|
@@ -45,10 +46,6 @@ warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
| 45 |
logging.getLogger("streamlit.deprecation").setLevel(logging.ERROR)
|
| 46 |
logging.getLogger("streamlit.runtime.scriptrunner").setLevel(logging.ERROR)
|
| 47 |
|
| 48 |
-
import streamlit as st
|
| 49 |
-
import pandas as pd
|
| 50 |
-
import plotly.express as px
|
| 51 |
-
import cloudscraper
|
| 52 |
|
| 53 |
# ---------------------------- #
|
| 54 |
# AUTO-REFRESH #
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
+
import streamlit as st
|
| 4 |
+
import pandas as pd
|
| 5 |
+
import plotly.express as px
|
| 6 |
+
import cloudscraper
|
| 7 |
+
import warnings
|
| 8 |
+
import logging
|
| 9 |
# Charger les variables d'environnement (si vous utilisez un .env localement)
|
| 10 |
load_dotenv()
|
| 11 |
#API_KEY = "0be4b0d76de6cf65b81e0a2de91b137f432e5a66e6d0c622d73c4b83e613e948"
|
|
|
|
| 27 |
|
| 28 |
print(response.status_code)
|
| 29 |
print(response.text)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# Load environment variables from .env
|
| 32 |
load_dotenv()
|
|
|
|
| 46 |
logging.getLogger("streamlit.deprecation").setLevel(logging.ERROR)
|
| 47 |
logging.getLogger("streamlit.runtime.scriptrunner").setLevel(logging.ERROR)
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
# ---------------------------- #
|
| 51 |
# AUTO-REFRESH #
|