Back to rankings

oxylabs/how-to-handle-amazon-captcha

Pythonoxylabs.io/products/scraper-api/ecommerce/amazon

The process of handling CAPTCHA when extracting public data from Amazon with Oxylabs Amazon Scraper API.

amazonamazon-scraperamazon-scraper-apicaptchacaptcha-solvercaptcha-solvingscraper-api
Star Growth
Stars
1.5k
Forks
3
Weekly Growth
Issues
0
5001k1.5k
Jan 2025Jul 2025Jan 2026Jul 2026
ArtifactsPyPIpip install how-to-handle-amazon-captcha
README

How to Handle Amazon CAPTCHA When Scraping

Oxylabs promo code

YouTube

Take a look at the process of handling CAPTCHAs when collecting public data from Amazon with Amazon Scraper API (one-week free trial). You can find the full guide on our blog.

Setting up a simple scraper

This scraper will likely encounter a CAPTCHA.

import requests

custom_headers = {
    "Accept-language": "en-GB,en;q=0.9",
    "Accept-Encoding": "gzip, deflate, br",
    "Cache-Control": "max-age=0",
    "Connection": "keep-alive",
    "User-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15",
}

url = "https://www.amazon.com/SAMSUNG-Border-Less-Compatible-Adjustable-LS24AG302NNXZA/dp/B096N2MV3H?ref_=Oct_DLandingS_D_fe3953dd_2"

response = requests.get(url, headers=custom_headers)

with open('with_captcha.html', 'w') as file:
    file.write(response.text)

Using Amazon Scraper API

The API is designed to avoid CAPTCHAs.

import requests
from pprint import pprint


payload = {
    'source': 'amazon',
    'url': 'https://www.amazon.com/dp/B096N2MV3H',
    'parse': True
}

response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('username', 'password'),
    json=payload,
)


pprint(response.json())

with open('without_captcha.json', 'w') as file:
    file.write(response.text)

Final word

Follow our technical documentation for all available API parameters.

In case of any issues, please contact us at support@oxylabs.io

Looking to scrape more other Amazon data? Amazon Review Scraper, Amazon ASIN Scraper, How to Scrape Amazon Prices, Scraping Amazon Product Data

Related repositories
geerlingguy/ansible-for-devops

Ansible for DevOps examples.

PythonPyPIMIT Licenseansibledevops
ansiblefordevops.com
9.8k3.8k
vantage-sh/ec2instances.info

Amazon EC2 instance comparison site

TypeScriptnpmMIT Licenseec2aws
instances.vantage.sh
5.7k624
chef/bento

Packer templates for building minimal Vagrant baseboxes for multiple platforms

HCLApache License 2.0packer-templatesvagrant
4.4k1.1k
aws/aws-sdk-java

The official AWS SDK for Java 1.x (In Maintenance Mode, End-of-Life on 12/31/2025). The AWS SDK for Java 2.x is available here: https://github.com/aws/aws-sdk-java-v2/

JavaMavenApache License 2.0aws-sdkjava
aws.amazon.com/sdkforjava
4.2k2.8k
anushka23g/Complete-Placement-Preparation

This repository consists of all the material required for cracking the coding rounds and technical interviews during placements.

PythonPyPIplacementsplacement
4k1.1k
gee1k/uPic

📤uPic is a native, powerful, beautiful and simple picture and file upload tool for macOS.

SwiftApache License 2.0swiftmacos-app
blog.svend.cc/upic
3.7k265
perixtar/2026-Tech-OA-by-FastPrep

List of Tech Company OAs. Save your time from finding them all over the internet.

PythonPyPIinterview-preparationinterview-questions
3.3k238
hyochan/react-native-iap

In App Purchase module for React Native that confirms OpenIAP

TypeScriptnpmMIT Licensereact-nativeamazon
hyochan.github.io/react-native-iap
3.2k694
oxylabs/how-to-scrape-amazon-product-data

The process of extracting product data from Amazon using Python, including titles, ratings, prices, images, and descriptions.

amazonamazon-scraper
oxylabs.io/products/scraper-api/ecommerce/amazon
3.1k12
aws/aws-sdk-java-v2

The official AWS SDK for Java - Version 2

JavaMavenApache License 2.0aws-sdkjava
2.6k1k
bank-vaults/bank-vaults

A Vault swiss-army knife: A CLI tool to init, unseal and configure Vault (auth methods, secret engines).

GoGo ModulesApache License 2.0vaultkubernetes
bank-vaults.dev
2.3k487
codersguild/System-Design

It's just fascinating. How is modern software designed? 🤔 Some design-level considerations for scalability, maintainability eventual consistency, availability & reliability. 👨‍💻 Interview Prep. 👨‍💻

GNU General Public License v3.0scalabilityinterview
codersguild.github.io/System-Design/
2.2k415