{"id":13747214,"url":"https://github.com/tducret/amazon-scraper-python","last_synced_at":"2026-04-08T12:19:14.774Z","repository":{"id":44377808,"uuid":"135822516","full_name":"tducret/amazon-scraper-python","owner":"tducret","description":"Non-official client to get some info about products sold on Amazon","archived":false,"fork":false,"pushed_at":"2020-10-13T06:29:45.000Z","size":196,"stargazers_count":881,"open_issues_count":13,"forks_count":160,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-09-24T21:59:22.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tducret.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-02T14:03:18.000Z","updated_at":"2025-09-09T12:16:52.000Z","dependencies_parsed_at":"2022-07-31T15:38:59.991Z","dependency_job_id":null,"html_url":"https://github.com/tducret/amazon-scraper-python","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/tducret/amazon-scraper-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Famazon-scraper-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Famazon-scraper-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Famazon-scraper-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Famazon-scraper-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tducret","download_url":"https://codeload.github.com/tducret/amazon-scraper-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Famazon-scraper-python/sbom","scorecard":{"id":871210,"data":{"date":"2025-08-11","repo":{"name":"github.com/tducret/amazon-scraper-python","commit":"30f812f0d2f2e7dd2f2af7ec1ad23626a0a0cabd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":3,"reason":"Found 4/11 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:14: pin your Docker image by updating gcr.io/distroless/python3 to gcr.io/distroless/python3@sha256:9d3def4c1a9d9dc98927db1515fc8d5c3c169eef338161fbe0479207d9928d14","Warn: pipCommand not pinned by hash: Dockerfile:11-12","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T04:16:27.669Z","repository_id":44377808,"created_at":"2025-08-24T04:16:27.669Z","updated_at":"2025-08-24T04:16:27.669Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31555058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T06:01:20.500Z","updated_at":"2026-04-08T12:19:14.724Z","avatar_url":"https://github.com/tducret.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# amazon-scraper-python\n\n[![Travis](https://img.shields.io/travis/tducret/amazon-scraper-python.svg)](https://travis-ci.org/tducret/amazon-scraper-python)\n[![Coveralls github](https://img.shields.io/coveralls/github/tducret/amazon-scraper-python.svg)](https://coveralls.io/github/tducret/amazon-scraper-python)\n[![PyPI](https://img.shields.io/pypi/v/amazonscraper.svg)](https://pypi.org/project/amazonscraper/)\n[![Docker Build Status](https://img.shields.io/docker/build/thibdct/amazon2csv.svg)](https://hub.docker.com/r/thibdct/amazon2csv/)\n![License](https://img.shields.io/github/license/tducret/amazon-scraper-python.svg)\n\n\n# Description\n\nThis package allows you to search for products on [Amazon](https://www.amazon.com/) and extract some useful information (ratings, number of comments).\n\nI wrote a French blog post about it [here](https://www.tducret.com/scraping/2018/06/05/amazon2csv-ou-comment-filtrer-les-produits-d-amazon-dans-excel.html)\n\n# Requirements\n\n- Python 3\n- pip3\n\n# Installation\n\n```bash\npip3 install -U amazonscraper\n```\n\n# Command line tool `amazon2csv.py`\n\nAfter the package installation, you can use the `amazon2csv.py` command in the terminal.\n\nAfter passing a search request to the command (and an optional maximum number of products), it will return the results as csv :\n\n```bash\namazon2csv.py --keywords=\"Python programming\" --maxproductnb=2\n```\n\n```csv\nProduct title,Rating,Number of customer reviews,Product URL,Image URL,ASIN\n\"Python Crash Course: A Hands-On, Project-Based Introduction to Programming\",4.5,370,https://www.amazon.com/Python-Crash-Course-Hands-Project-Based/dp/1593276036,https://images-na.ssl-images-amazon.com/images/I/51F48HFHq6L.jpg,1593276036\n\"A Smarter Way to Learn Python: Learn it faster. Remember it longer.\",4.7,384,https://www.amazon.com/Smarter-Way-Learn-Python-Remember-ebook/dp/B077Z55G3B,https://images-na.ssl-images-amazon.com/images/I/51fNZfTUPXL.jpg,B077Z55G3\n```\n\nYou can also pass a search url (if you added complex filters for example), and save it to a file :\n\n```bash\namazon2csv.py --url=\"https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps\u0026field-keywords=python+scraping\" \u003e output.csv\n```\n\nYou can then open it with your favorite spreadsheet editor (and play with the filters) :\n\n![snapshot amazon2csv](snapshot_amazon2csv.png)\n\nMore info about the command in the help :\n\n```bash\namazon2csv.py --help\n```\n\n# Using the `amazonscraper` Python package\n\n```python\n# -*- coding: utf-8 -*-\nimport amazonscraper\n\nresults = amazonscraper.search(\"Python programming\", max_product_nb=2)\n\nfor result in results:\n    print(\"{}\".format(result.title))\n    print(\"  - ASIN : {}\".format(result.asin))\n    print(\"  - {} out of 5 stars, {} customer reviews\".format(result.rating, result.review_nb))\n    print(\"  - {}\".format(result.url))\n    print(\"  - Image : {}\".format(result.img))\n    print()\n\nprint(\"Number of results : %d\" % (len(results)))\n\n```\n\nWhich will output :\n\n```\nPython Crash Course: A Hands-On, Project-Based Introduction to Programming\n  - ASIN : 1593276036\n  - 4.5 out of 5 stars, 370 customer reviews\n  - https://www.amazon.com/Python-Crash-Course-Hands-Project-Based/dp/1593276036\n  - Image : https://images-na.ssl-images-amazon.com/images/I/51F48HFHq6L.jpg\n\nA Smarter Way to Learn Python: Learn it faster. Remember it longer.\n  - ASIN : B077Z55G3B\n  - 4.7 out of 5 stars, 384 customer reviews\n  - https://www.amazon.com/Smarter-Way-Learn-Python-Remember-ebook/dp/B077Z55G3B\n  - Image : https://images-na.ssl-images-amazon.com/images/I/51fNZfTUPXL.jpg\n\nNumber of results : 2\n```\n\n### Attributes of the `Product` object\n\nAttribute name      | Description\n------------------- | ---------------------------------------\ntitle               | Product title\nrating      \t    | Rating of the products (number between 0 and 5, False if missing)\nreview_nb\t        | Number of customer reviews (False if missing)\nurl \t\t\t\t| Product URL\nimg                 | Image URL\nasin \t\t\t\t| Product ASIN ([Amazon Standard Identification Number](https://fr.wikipedia.org/wiki/Amazon_Standard_Identification_Number))\n\n--------------\n\n# Docker\n\nYou can use the amazon2csv tool with the [Docker image](https://hub.docker.com/r/thibdct/amazon2csv/)\n\nYou may execute :\n\n`docker run -it --rm thibdct/amazon2csv --keywords=\"Python programming\" --maxproductnb=2`\n\n## 🤘 The easy way 🤘\n\nI also built a bash wrapper to execute the Docker container easily.\n\nInstall it with :\n\n```bash\ncurl -s https://raw.githubusercontent.com/tducret/amazon-scraper-python/master/amazon2csv \\\n\u003e /usr/local/bin/amazon2csv \u0026\u0026 chmod +x /usr/local/bin/amazon2csv\n```\n*You may replace `/usr/local/bin` with another folder that is in your $PATH*\n\nCheck that it works :\n\n*On the first execution, the script will download the Docker image, so please be patient*\n\n```bash\namazon2csv --help\namazon2csv --keywords=\"Python programming\" --maxproductnb=2\n```\n\nYou can upgrade the app with :\n\n```bash\namazon2csv --upgrade\n```\n\nand even uninstall with :\n\n```bash\namazon2csv --uninstall\n```\n\n## TODO\n\n- [ ] If no product was found with the CSS selectors, it may be a new Amazon page style =\u003e change user agent and get the new page. Loop on all the user agents and check all the CSS selectors again\n- [ ] Find a way to get the products without css selectors","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftducret%2Famazon-scraper-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftducret%2Famazon-scraper-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftducret%2Famazon-scraper-python/lists"}