Add Amazon keyboard scraper with Elasticsearch storage and analytical queries #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements a scraper that extracts product data from 20 pages of Amazon IT keyboard search results, stores it in Elasticsearch, and executes 7 analytical queries on the dataset.
Changes
Core Implementation (
amazon_keyboard_scraper.py)amazon.it/s?k=keyboardSGAI_API_KEYwith provided defaultElasticsearch Compatibility Fix
elasticsearchclient to8.x(was>=8.0.0) for ES 8.11 server compatibilityDocumentation
AMAZON_SCRAPER_README.md: Installation, usage, query descriptions, troubleshootingEXAMPLE_OUTPUT.md: Actual output with market insights and buying recommendationsExample Usage
Query example - Prime vs non-Prime comparison:
Technical Notes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
docker.elastic.co/usr/libexec/docker/cli-plugins/docker-compose compose up -d(dns block)telemetry.elastic.co/usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli/dist --ops.cGroupOverrides.cpuPath=/ --ops.cGroupOverrides.cpuAcctPath=/ --elasticsearch.hosts=http://elasticsearch:9200(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.