frkhan commited on
Commit
8eba581
·
1 Parent(s): 22fa711

-- Added Disclaimer section to inform user of this project to be responsible while scraping websites.

Browse files
Files changed (2) hide show
  1. README.md +6 -0
  2. app.py +9 -0
README.md CHANGED
@@ -42,6 +42,12 @@ Scrape any web page, ask questions, and get structured answers powered by LangCh
42
 
43
  ---
44
 
 
 
 
 
 
 
45
  ## 📦 Installation
46
 
47
  ### Option 1: Run Locally
 
42
 
43
  ---
44
 
45
+ ## ⚠️ Important Disclaimer
46
+
47
+ > This tool is provided for educational and experimental purposes only. Users are solely responsible for their actions and must comply with the terms of service of any website they scrape. Always respect `robots.txt` and be mindful of the website's policies. The developers of this tool are not liable for any misuse.
48
+
49
+ ---
50
+
51
  ## 📦 Installation
52
 
53
  ### Option 1: Run Locally
app.py CHANGED
@@ -181,6 +181,15 @@ with gr.Blocks() as gradio_ui:
181
 
182
 
183
  with gr.Column():
 
 
 
 
 
 
 
 
 
184
  url_input = gr.Textbox(label="Enter URL to scrape", placeholder="https://example.com/query?search=cat+food", autofocus=True)
185
  query_input = gr.Textbox(label="What information do you want to find?", placeholder="Find product name, price, rating etc. / Summarize the content of this page")
186
 
 
181
 
182
 
183
  with gr.Column():
184
+ gr.HTML("""
185
+ <div style="padding: 12px; border: 1px solid #d32f2f; background-color: #ffebee; border-radius: 8px; margin-bottom: 15px;">
186
+ <p style="margin: 0; color: #c62828; font-weight: 500;">
187
+ ⚠️ <code style="background-color: #ffcdd2; color: #c62828; padding: 2px 5px; border-radius: 4px; font-weight: 600;">Disclaimer:</code>. Please be responsible when scraping websites. Users must comply with the terms of service of any website they scrape and respect
188
+ <code style="background-color: #ffcdd2; color: #c62828; padding: 2px 5px; border-radius: 4px; font-weight: 600;">robots.txt</code>.
189
+ The developers of this tool are not liable for any misuse.
190
+ </p>
191
+ </div>
192
+ """)
193
  url_input = gr.Textbox(label="Enter URL to scrape", placeholder="https://example.com/query?search=cat+food", autofocus=True)
194
  query_input = gr.Textbox(label="What information do you want to find?", placeholder="Find product name, price, rating etc. / Summarize the content of this page")
195