zavavan commited on
Commit
a8f37fe
·
verified ·
1 Parent(s): 522a7c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def scrape_drugs_com_reviews(drug_name, max_pages=3, delay=2):
32
  """
33
  Scrapes user reviews from Drugs.com for a given drug.
34
  """
35
- base_url = f"https://www.drugs.com/comments/{drug_name}/"
36
  all_reviews = []
37
 
38
  async with async_playwright() as p:
 
32
  """
33
  Scrapes user reviews from Drugs.com for a given drug.
34
  """
35
+ base_url = f"https://www.drugs.com/comments/{drug_name}/"
36
  all_reviews = []
37
 
38
  async with async_playwright() as p: