Skip to content

Conversation

@RandomProgramm3r
Copy link
Owner

feat: Add async parser version and restructure for modularity

  • Introduced async scraping logic in async_.py to support non-blocking operations.
  • Extracted shared functionality into common.py for reuse between sync and async versions.
  • Split original monolithic parser into separate modules under src/scraper/.
  • Moved data-related code to data/steam_data.py for better separation of concerns.
  • Added format_response() utility to format item data with game and currency names.
  • Updated requirements.txt.
  • Add new and update old tests.
  • Overhaul example section and add CI/license badges
  • Add MIT license

- Introduced async scraping logic in `async_.py` to support non-blocking operations.
- Extracted shared functionality into `common.py` for reuse between sync and async versions.
- Split original monolithic parser into separate modules under `src/scraper/`.
- Moved data-related code to `data/steam_data.py` for better separation of concerns.
- Added `format_response()` utility to format item data with game and currency names.
- Updated requirements.txt.
- Remade the “Example” section to include both synchronous and asynchronous usage with proper markdown code blocks
- Updated example output JSON to reflect the new `format_response()` fields (`game_name`, `currency_name`, `item_name`)
- Added Shields.io badges for Ruff (linting) and MIT license at the top of the README
- Added `LICENSE` file with the full MIT License text
@RandomProgramm3r RandomProgramm3r merged commit 9b7eacb into main May 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants