Skip to content

Streamlit webapp to search gravel bikes available at Decathlon

Notifications You must be signed in to change notification settings

Guillaume-Fgt/decathlon_scrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrap_Decathlon_Streamlit

Tool to scrap Decathlon website and display stocks for Gravel Bike.

Use bs4 and Selenium to populate a database (using sqlite3). Then display the content on a webapp using Streamlit.

Files:

  • db_operations : to create the database and the table
  • populate db: beautiful soup scrap of the website. Populate bike_name, bike_price and bike_url columns.
  • stocks_scrap: selenium part of the scrapping (because a button had to be clicked). The functions inside this module are called from Steamlit interface.
  • decathlon_scrap.py: Streamlit web app. Run it using "Streamlit run decathlon_scrap.py" command in the directory.

Animation

How to use it:

clone the repo:

git clone https://github.com/Guillaume-Fgt/decathlon_scrap.git

Navigate to the clone directory and use poetry to install dependencies:

poetry install

Activate the virtual environment created and run streamlit:

streamlit run decathlon_scrap\decathlon_scrap.py

About

Streamlit webapp to search gravel bikes available at Decathlon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages