Spaces:
Running
Running
| # import streamlit as st | |
| # import requests | |
| # from bs4 import BeautifulSoup | |
| # from src.functions_scrapper import scrape_website | |
| # ################################################################################ | |
| # tab1, tab2 = st.tabs(["Scrapper", "DB_Extraction"]) | |
| # st.sidebar.title("App parameters") | |
| # link = st.sidebar.text_input("Enter the link to the website you want to scrape") | |
| # selector = st.sidebar.selectbox("Select the tag you want to scrape", ["div", "p", "h1", "span", "a", "img"]) | |
| # button = st.sidebar.button("Scrape") | |
| # #### | |
| # tab1.title("Project 3 - Scrapper") | |
| # if link and button and selector: | |
| # result = scrape_website(link, selector=selector) | |
| # tab1.write(result) | |