Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,9 +89,9 @@ search_query = collections[selected]
|
|
89 |
# Use the main search endpoint (most reliable)
|
90 |
collection_url = f"https://www.loc.gov/search/?q={search_query}&fo=json"
|
91 |
st.sidebar.write(f"Selected Collection: {selected}")
|
92 |
-
st.sidebar.write(f"API URL: {collection_url}")
|
93 |
st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}</span>", unsafe_allow_html=True)
|
94 |
|
|
|
95 |
# Fetch data from LOC API with spoofed User-Agent header
|
96 |
headers = {
|
97 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/110.0.0.0 Safari/537.36"
|
|
|
89 |
# Use the main search endpoint (most reliable)
|
90 |
collection_url = f"https://www.loc.gov/search/?q={search_query}&fo=json"
|
91 |
st.sidebar.write(f"Selected Collection: {selected}")
|
|
|
92 |
st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}</span>", unsafe_allow_html=True)
|
93 |
|
94 |
+
|
95 |
# Fetch data from LOC API with spoofed User-Agent header
|
96 |
headers = {
|
97 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/110.0.0.0 Safari/537.36"
|