Coder Social home page Coder Social logo

oxylabs / walmart-scraper Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 24 KB

Walmart Scraper for extracting product prices, titles, descriptions, specifications, ratings and reviews from walmart.com

C# 24.01% Shell 4.47% Go 11.85% Java 28.97% JavaScript 9.76% PHP 12.08% Python 8.85%
walmart walmart-api walmart-scraper url-scraper

walmart-scraper's Introduction

Walmart Scraper

Oxylabs promo code

Oxylabs’ Walmart Scraper is a scraping solution that allows you to effortlessly extract data from a Walmart website in real-time. In this brief guide, we’ll detail how a Walmart Scraper works and provide code examples to better visualize how easy it's to use it.

How it works

You can get Walmart results by providing your own URLs to our service. We can return the HTML for any Walmart page you like. Additionally, we can deliver structured (parsed) output for Walmart product, search, and offer listing pages.

Python code example

The example below illustrates how you can get a parsed Walmart product page result.

import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'universal_ecommerce',
    'url': 'https://www.walmart.com/ip/Adidas-Moves-Body-Spray-for-Men-2-5-Oz/710726462',
    'geo_location': 'United States',
    'parse': True,
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('user', 'pass1'),
    json=payload,
)

# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())

Find code examples for other programming languages here

Output Example

{
    "results": [
        {
            "content": {
                "url": "https://www.walmart.com/ip/Adidas-Moves-Body-Spray-for-Men-2-5-Oz/710726462",
                "meta": {
                    "sku": "710726462",
                    "gtin": null
                },
                "price": 8.12,
                "title": "Adidas Moves Body Spray for Men, 2.5 Oz",
                "rating": {
                    "count": 0,
                    "rating": 0
                },
                "currency": "USD",
                "_warnings": [
                    "Could not determine if shipping is free. Perhaps no product variant is selected.",
                    "Could not parse seller info. Perhaps no product variant is selected."
                ],
                "breadcrumbs": [
                    "Beauty",
                    "Travel Size Beauty",
                    "Travel Size Fragrance",
                    "Travel Size Body Spray"
                ],
                "description": "<p>Adidas Moves for Him is an energetic, aromatic Fougere fragrance. It is invigorating, stimulating, and crisp for all the ways you play. Top notes of the men's fragrance include fresh green apple, anise, Italian parsley, peppermint, mandarin and black peppercorn. Heart notes include cedarwood, musk, lavender, and jasmine. Base notes include muguet, sandalwood, oakmoss, and thyme. Adidas Moves for Him: -Energetic and aromatic -Lasts longer than traditional applications -Provides all-day confidence</p>",
                "specifications": [
                    {
                        "key": "Body Spray Type",
                        "value": "Spray"
                    },
                    {
                        "key": "Gender",
                        "value": "Male"
                    },
                    {
                        "key": "Size",
                        "value": "2.5 oz"
                    },
                    {
                        "key": "Brand",
                        "value": "Adidas"
                    },
                    {
                        "key": "Manufacturer",
                        "value": "Hfc Prestige International Us Llc"
                    },
                    {
                        "key": "Assembled Product Dimensions (L x W x H)",
                        "value": "0.98 x 6.65 x 6.10 Inches"
                    }
                ],
                "parse_status_code": 12005
            },
            "created_at": "2022-11-17 14:42:27",
            "updated_at": "2022-11-17 14:42:31",
            "page": 1,
            "url": "https://www.walmart.com/ip/Adidas-Moves-Body-Spray-for-Men-2-5-Oz/710726462",
            "job_id": "6999018925149157377",
            "status_code": 200,
            "parser_type": "walmart_product"
        }
    ]
}

With our Walmart Scraper, you can easily extract publicly available data from any Walmart web page. Quickly access product prices, descriptions, reviews, and much more in real-time to gain a competitive edge. If you have any questions or concerns, please feel free to contact our support team via live chat or email.

walmart-scraper's People

Contributors

augustoxy avatar oxyjohan avatar oxylabsorg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danieltu71

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.