Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oxylabs/macys-scraper

The macys Scraper API is a robust web scraping tool developed for efficient extraction and manipulation of data from the Macy's ecommerce platform.
https://github.com/oxylabs/macys-scraper

macys macys-scraper macys-scraper-api macys-scraping macys-web-scraper

Last synced: about 1 month ago
JSON representation

The macys Scraper API is a robust web scraping tool developed for efficient extraction and manipulation of data from the Macy's ecommerce platform.

Awesome Lists containing this project

README

        

# Macys Scraper API

[![Oxylabs promo code](https://user-images.githubusercontent.com/129506779/250792357-8289e25e-9c36-4dc0-a5e2-2706db797bb5.png)](https://oxylabs.go2cloud.org/aff_c?offer_id=7&aff_id=877&url_id=112)

[![](https://dcbadge.vercel.app/api/server/eWsVUJrnG5)](https://discord.gg/GbxmdGhZjq)

Oxylabs’ [Macys Scraper](https://oxylabs.io/products/scraper-api/ecommerce/macys?utm_source=github&utm_medium=repositories&utm_campaign=product) is a data gathering solution allowing you to extract real-time information from an Macys website effortlessly. This brief guide explains how an Macys Scraper works and provides code examples to understand better how you can use it hassle-free.

### How it works

You can get Macys results by providing your own URLs to our service. We can return the HTML for any Macys page you like.

#### Python code example

The example below illustrates how you can get HTML of Macys page.

```python
import requests
from pprint import pprint

# Structure payload.
payload = {
'source': 'universal',
'url': 'https://www.macys.com/shop/sale?id=3536&trackingid=407x733169&m_sc=sem&m_sb=google&m_tp=trademark&m_ac=google_trademark_international&m_ag=macy%27score_exact&m_cn=ggl_trademark_intl_lithuania_exact&m_pi=go_cmp-94807774_adg-154238318312_ad-674544461209_kwd-252677959_dev-c_ext-102882313401_prd-&gad_source=1&gclid=cj0kcqiayewrbhddarisagp1mwsg3z6ogoqrztdycjyqio5togc316ldkwuqkkbhrmiv4i_ho0gcjlkaagl6ealw_wcb'
}

# 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**](https://github.com/oxylabs/macys-scraper/tree/main/code%20examples)

#### Output Example
```json
{
"results": [
{
"content": "\n\n\n \n ",
"created_at": "2023-12-18 10:35:28",
"updated_at": "2023-12-18 10:35:31",
"page": 1,
"url": "https://www.macys.com/shop/sale?id=3536&trackingid=407x733169&m_sc=sem&m_sb=google&m_tp=trademark&m_ac=google_trademark_international&m_ag=macy%27score_exact&m_cn=ggl_trademark_intl_lithuania_exact&m_pi=go_cmp-94807774_adg-154238318312_ad-674544461209_kwd-252677959_dev-c_ext-102882313401_prd-&gad_source=1&gclid=cj0kcqiayewrbhddarisagp1mwsg3z6ogoqrztdycjyqio5togc316ldkwuqkkbhrmiv4i_ho0gcjlkaagl6ealw_wcb",
"job_id": "7142462363617271809",
"status_code": 200
}
]
}
```
With our Macys Scraper, you can easily pull public data from any Macys web page. Gather specific product details like the sizes available, color options, shipping details or material specifications to better understand the market and outshine your competitors. If you need assistance, feel free to reach out to our responsive support team through live chat or shoot us an email at [email protected].