This package allows you to scrap Gimbel Mexicana website and return product infos.
Project description
Implementations are for learning purposes only. As they may be less efficient than the implementations in the Python standard library, use them at your discretion.
Project Gimbel Mexicana
- GitHub: https://github.com/PandasBots/pandasbots-gimbel
- Ref.: https://gimbelmexicana.com/
- Author: Rafael Klanfer Nunes
- Date: 30/05/2022
Description:
User will input the website URL and the program will return:
-
Excel file containing product info.
-
PDF file containg product instructions.
-
JSON file with:
- name: The name of the product
- code: The SKU of the product (codigo)
- Image: The src url of the images of the product
- Details: The details of the product (separating each in JSON format)
- Info: The "more info" of the product (separating each in JSON format)
- Brand: The brand name
Installing
pip install gimbel
Usage
>>> from gimbel_scraper import get_product_info
>>> URL = "https://gimbelmexicana.com/gimbel/store/articulo/16680"
>>> data = get_product_info(URL)
>>> print(data)
Return
{'Brand': 'GIM SPORTS', 'Code': 'Código: 15GIMNAS419CH', 'Name': 'BALON PARA CROSSFIT 2KG', 'Details': 'ÿþBalón medicinal para CROSSFIT\n\nCaracterísticas:\n" Fabricada de caucho resistente con relleno de arena.\n* Superficie con textura que evita derrape\n" No rebota\n" Perfecta para complementar los ejercicios de fuerza y resistencia en los músculos.\n" Entre los principales músculos trabajados encontramos glúteos/ cuádriceps/ isquiotibiales/ hombros y de forma secundaria/ abdominales\ny demás músculos de zona media del cuerpo que se contraen para conservar una correcta postura durante el movimiento.\n" Marca \x1c GIM\x1d', 'Info': '{"C\\u00f3digo":{"0":null,"1":"15GIMNAS419CH"},"Peso":{"0":null,"1":"2 kg"},"Color":{"0":null,"1":"Azul"}}', 'Image': ['https://gimbelmexicana.com/gimbel/img/products_images/thumb/15GIMNAS419CH_1.jpg', 'https://gimbelmexicana.com/gimbel/img/products_images/thumb/15GIMNAS419CH.jpg']}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pandasbots_gimbel-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 246d503bad3de637a80d2f2739a075d02aac01757fddac37438e230c4eac71e3 |
|
MD5 | c23482434c9b24ca5090819bdc5aba37 |
|
BLAKE2b-256 | 1b6a96f5a14b684ba56ef04b056c01881f148b1e252554809467243e6a374d3c |