ashok2216 commited on
Commit
9bd194f
·
verified ·
1 Parent(s): 39338e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -13
app.py CHANGED
@@ -5,19 +5,6 @@ import seaborn as sns
5
  from data_cleaning import preprocess
6
  from transformers import pipeline
7
  from data_integration import scrape_all_pages
8
- import time
9
- from itertools import cycle
10
- import requests
11
-
12
- proxy_list = ["http://proxy1.com", "http://proxy2.com", "http://proxy3.com"]
13
- proxy_pool = cycle(proxy_list)
14
-
15
- for i in range(10):
16
- proxy = next(proxy_pool)
17
- url = "https://www.amazon.in/Dell-Inspiron-i7-1255U-Processor-Platinum/product-reviews/B0C9F142V6/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&revie"
18
- response = requests.get(url, proxies={"http": proxy, "https": proxy}, headers=headers)
19
- print(response.status_code)
20
- time.sleep(2) # Wait for 2 seconds between requests
21
 
22
 
23
 
 
5
  from data_cleaning import preprocess
6
  from transformers import pipeline
7
  from data_integration import scrape_all_pages
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
 
10