Skip to content

Feature: Add a parser for Amazon #2

Description

@Hurthv

Description

Extend the framework to support Amazon (amazon.com / amazon.de / amazon.co.uk, etc.) – one of the largest global marketplaces.

Implementation Guide

  1. Create a parsers/amazon.py file with the ParseAmazon class (inherits Parse)
  2. Define selectors for:
  • Search field (placeholder)
  • Product cards
  • Name, price, rating
  1. Register in playcast/Parser.py:
class ParseAmazon:
@staticmethod
async def get_cards_by_placeholder(keyword: str, ...):
return await _run_parser("parsers.amazon", "ParseAmazon", ...)
  1. Add configs to config.py if needed
  2. 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions