import gradio as gr
from bs4 import BeautifulSoup as bs
from pypdf import PdfReader
#import html5lib
#import copy
import requests
#from IPython.display import IFrame
def scrape(instring):
return gr.HTML.update(f'''''')
def scrape1(instring):
# set the url to perform the get request
URL = f'{instring}'
page = requests.get(URL)
# load the page content
text = page.content
# make a soup object by using beautiful
# soup and set the markup as html parser
soup = bs(text, "html.parser")
out = str(soup.prettify())
return gr.HTML.update(f'''