Giter VIP home page Giter VIP logo

scrapy_auchan-product-price's Introduction

How to scrap products from Auchan Drive websites

You can find mindset and examples for scraping a product pricse from Auchan Drive websites.

It is tidied by project shots that have single of multiple purposes.

Summary

  1. Context and dependencies
  2. Running the scrap
  3. Workflow
  4. Goal of directories and projects

Context and dependencies

Code run from Visual Studio Code 2017 with Python and C++ environements configured. Python version selected is python-3.6 because of dependencies with scrapy package (not compatible with python-3.7 yet).

Python dependencies and versions :

  • pywin32-223
  • requests-2.19.1
  • scrapy-1.5.1

Running the scrap

Scrapy has its own libraries running without including all you need. With this behaviour you just need to focus on scrapping your data.

Running a scrapy job written in PriceScraper.py :

scrapy runspider PriceScraper.py

Workflow

If you directly browse product you can see that you are directly redirected to an error page page_non_trouvee.html.

You need to first select a Drive Location before browsing product. We chose to go at Auchan Drive Englos.

Thus we can show product informations. We chose product Coca-Cola Zero 1L.

Goal of directories and projects

Sens and goal of directories:

  • SingleProductParser: Quick simple example to focus on Scrapy Framework,
  • MultipleProductsParser: Script to parse prices from multiple sources of products (product page and search page),
  • ProductsSaveMongo: Evolved version with better structured data and saving into a MongoDB,

scrapy_auchan-product-price's People

Contributors

germainlefebvre4 avatar

Stargazers

Nicolas BENY avatar

Watchers

James Cloos avatar  avatar

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.