Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,8 +54,16 @@ def main():
|
|
| 54 |
if st.sidebar.button('📥 Get All the Content'):
|
| 55 |
download_html_and_files(url)
|
| 56 |
show_download_links()
|
|
|
|
|
|
|
| 57 |
if st.sidebar.button('📂 Show Download Links'):
|
| 58 |
show_download_links()
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
if __name__ == "__main__":
|
| 61 |
-
main()
|
|
|
|
| 54 |
if st.sidebar.button('📥 Get All the Content'):
|
| 55 |
download_html_and_files(url)
|
| 56 |
show_download_links()
|
| 57 |
+
with open("history.txt", "a") as file:
|
| 58 |
+
file.write(f"{url}\n")
|
| 59 |
if st.sidebar.button('📂 Show Download Links'):
|
| 60 |
show_download_links()
|
| 61 |
|
| 62 |
+
with open("history.txt", "r") as file:
|
| 63 |
+
history_urls = file.readlines()
|
| 64 |
+
if history_urls:
|
| 65 |
+
st.markdown("## History")
|
| 66 |
+
st.text_area("URL history", value="".join(history_urls), height=200)
|
| 67 |
+
|
| 68 |
if __name__ == "__main__":
|
| 69 |
+
main()
|