Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def find_details2(req_json):
|
|
60 |
def display_articles_for_category(category):
|
61 |
for index, row in real_trending_searches[category].iterrows():
|
62 |
count = index + 1
|
63 |
-
with st.expander(f"{count}• {row['title']}
|
64 |
articles = find_details(base_data[category], row['title'])
|
65 |
for count2, url in enumerate(articles, start=1):
|
66 |
st.markdown(f"{count2}• {url['articleTitle']} [Go To →]({url['url']})")
|
@@ -74,8 +74,8 @@ def display_articles_for_today(count, index):
|
|
74 |
|
75 |
|
76 |
categories = {
|
77 |
-
"Gesundheit": "m",
|
78 |
"Alle": "all",
|
|
|
79 |
"Business": "b",
|
80 |
"Headlines": "h",
|
81 |
"Sport": "s",
|
@@ -125,7 +125,7 @@ if 'selected_option' not in st.session_state:
|
|
125 |
|
126 |
# Now, you can safely use st.session_state['selected_option']
|
127 |
selected_option = st.sidebar.radio("Choose an option", ["Realzeit Anfragen", "Tagesaktuelle Anfragen", "Trending Searches Yesterday"])
|
128 |
-
|
129 |
if selected_option == "Tagesaktuelle Anfragen":
|
130 |
today = pytrend.today_searches(pn="AT")
|
131 |
#trending_searches = pytrend.trending_searches(pn="austria")
|
|
|
60 |
def display_articles_for_category(category):
|
61 |
for index, row in real_trending_searches[category].iterrows():
|
62 |
count = index + 1
|
63 |
+
with st.expander(f"{count}• {row['title']} "):
|
64 |
articles = find_details(base_data[category], row['title'])
|
65 |
for count2, url in enumerate(articles, start=1):
|
66 |
st.markdown(f"{count2}• {url['articleTitle']} [Go To →]({url['url']})")
|
|
|
74 |
|
75 |
|
76 |
categories = {
|
|
|
77 |
"Alle": "all",
|
78 |
+
"Gesundheit": "m",
|
79 |
"Business": "b",
|
80 |
"Headlines": "h",
|
81 |
"Sport": "s",
|
|
|
125 |
|
126 |
# Now, you can safely use st.session_state['selected_option']
|
127 |
selected_option = st.sidebar.radio("Choose an option", ["Realzeit Anfragen", "Tagesaktuelle Anfragen", "Trending Searches Yesterday"])
|
128 |
+
st.sidebar.warning("Die aufgelisteten Keywörter für erhöhte Reichweite in den Überschriften verwenden")
|
129 |
if selected_option == "Tagesaktuelle Anfragen":
|
130 |
today = pytrend.today_searches(pn="AT")
|
131 |
#trending_searches = pytrend.trending_searches(pn="austria")
|