Description
Extend the framework to support Amazon (amazon.com / amazon.de / amazon.co.uk, etc.) – one of the largest global marketplaces.
Implementation Guide
- Create a
parsers/amazon.py file with the ParseAmazon class (inherits Parse)
- Define selectors for:
- Search field (placeholder)
- Product cards
- Name, price, rating
- Register in
playcast/Parser.py:
class ParseAmazon:
@staticmethod
async def get_cards_by_placeholder(keyword: str, ...):
return await _run_parser("parsers.amazon", "ParseAmazon", ...)
- Add configs to
config.py if needed
- Test with different regions (com, de, co.uk)
Notes
- Use the same patterns as in
ozon.py
- Take geolocation into account (different domains for different countries)
Description
Extend the framework to support Amazon (amazon.com / amazon.de / amazon.co.uk, etc.) – one of the largest global marketplaces.
Implementation Guide
parsers/amazon.pyfile with theParseAmazonclass (inheritsParse)playcast/Parser.py:config.pyif neededNotes
ozon.py