Skip to content

Commit

Permalink
added Amazon offers module
Browse files Browse the repository at this point in the history
  • Loading branch information
sushil-rgb committed Nov 23, 2023
1 parent 58d6bf6 commit 301b220
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scrapers/offers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from scrapers.scraper import Amazon


async def get_category_offer(category_name):
categ_url = f"https://www.amazon.it/s?k=offerte+{category_name}"
offers = await Amazon(categ_url, None).export_csv()
return offers

1 change: 1 addition & 0 deletions scrapers/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Amazon:
- scrape (yaml_load): An instance of the yaml_load class, used for selecting page elements to be scraped.
"""


def __init__(self, base_url, proxy):
"""
Initializes an instance of the Amazon class.
Expand Down

0 comments on commit 301b220

Please sign in to comment.