Giter VIP home page Giter VIP logo

bts_spy's Introduction

BTS_Spy

Training Project to scrape some information on training site books.toscrape.com.

Part of Open Classrooms "DA Python" formation, 2nd Project.

It's better to have Python > 3.2.2 for decent html.parser.

Creating Virtual environment, downloading and running the program

You need Python (minimum 3.2.2, tested on 3.9.5) and git installed on your machine. Open a terminal and navigate into the folder you want BTS-Spy to be downloaded, and run the following commands:

  • On Linux or MacOS:
git clone https://github.com/YoannDeb/BTS_Spy.git
cd BTS_Spy
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python BTS_Spy.py
  • On Windows:
git clone https://github.com/YoannDeb/BTS_Spy.git
cd BTS_Spy
python -m venv env
env\Scripts\activate.bat
pip install -r requirements.txt
python BTS_Spy.py

What is this program doing?

Information retrieving:

It will generate one csv file by category, whose name is "category_url_name".csv, in a folder /data/"category_url_name".

The separator in the csv file is ",".

This file will contain those entries :

  • product_page_url
  • universal_product_code
  • title
  • price_including_tax
  • price_excluding_tax
  • number_available
  • product_description
  • category
  • review_rating
  • image_url
  • saved_image_path

Book image downloading:

Also downloaded all images of all the books in each category, in a folder data/"category_url_name"/images.

bts_spy's People

Contributors

yoanndeb avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

simo97

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.