Scaper-Suite / app.py
Nymbo's picture
Update app.py
1b3d652 verified
Raw
History Blame Contribute Delete
1.66 kB
import os
import gradio as gr
# Define the components using the specified URLs
with gr.Blocks() as Instructions:
gr.HTML("<iframe src='https://nymbo-scraper-instructions.hf.space' width='100%' height='600px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as Zip:
gr.HTML("<iframe src='https://nymbo-save-web-as-zip.hf.space' width='100%' height='600px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as Images:
gr.HTML("<iframe src='https://nymbo-web-scraper-images.hf.space' width='100%' height='600px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as Text:
gr.HTML("<iframe src='https://nymbo-text-scraper.hf.space' width='100%' height='850px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as JSON:
gr.HTML("<iframe src='https://nymbo-json-crawl.hf.space' width='100%' height='900px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as YouTube:
gr.HTML("<iframe src='https://nymbo-youtube-download.hf.space' width='100%' height='900px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as Downloader:
gr.HTML("<iframe src='https://nymbo-all-in-one-downloader.hf.space' width='100%' height='900px' style='border-radius: 8px;'></iframe>")
# Set theme and title
with gr.Blocks(theme="Nymbo/Nymbo_Theme", title="🥷Scraper Suite🥷") as demo:
gr.HTML("<center><h1>Scraper Suite</h1></center>")
gr.TabbedInterface(
[Instructions, Zip, Images, Text, JSON, YouTube, Downloader],
['Scrape with Instructions', 'Scrape n Zip', 'Get Images', 'Get Text', 'Get JSON', 'YouTube Downloader', 'MP4 Downloader']
)
demo.queue().launch(debug=True)