Git Product home page Git Product logo

Comments (2)

mgaitan avatar mgaitan commented on June 24, 2024

Quizas sea más fácil intentar obtener la marca a partir del codigo upc (las primeras cifras corresponden a la marca)

from preciosa.

mgaitan avatar mgaitan commented on June 24, 2024

El commit d02979c agrega el scrapping de categorias de walmart.

El sitio de walmart utiliza el framework spry que compone las paginas mediante llamadas ajax

por ejemplo, una pagina para una categoria de nivel 3 es por ejemplo Bebidas sin alcohol > Gaseosas > Tónica

https://www.walmartonline.com.ar/Busqueda.aspx?Departamento=D_bebidas%20sin%20alcohol&Familia=&Linea=l_TONICA&Text=

En la carga de la página hace una llamada via ajax (via el framework spry) a
"https://www.walmartonline.com.ar/WebControls/hlSearchResults.ashx?busqueda=&departamento=D_bebidas%20sin%20alcohol&familia=&linea=l_TONICA&orderby=undefined&orderbyid=undefined&range=undefined&sid=0.2594193538885615"

que a su vez, invoca a otras sendas url que devuelven Productos, subcategorias, etc. Por ejemplo
https://www.walmartonline.com.ar/WebControls/hlSearchProducts.ashx

el parametro sid es aleatorio.

Los problema que tengo son

  1. del árbol de categorias sólo guardé los nombres y no los parámetros asociados que conforma la url (departamento, familia, linea respectivamente para cada nivel de categoria). Por lo tanto no hay una forma unívoca de construir la url

  2. No logro hacer el request GET a la direccion que devuelve el listado de items

In [15]: requests.get('https://www.walmartonline.com.ar/WebControls/hlSearchProducts.ashx?busqueda=undefined&departamento=D_almacen&familia=undefined&linea=undefined&orderby=undefined&orderbyid=undefined&range=undefined&sid=0.90923454555', headers={'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest'}).content
Out[15]: ''

from preciosa.

Related Issues (20)

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.