Giter Site home page Giter Site logo

tiki_data_scrapper's Introduction

Description

This example of ETL pipeline, it is trying to store data that extracting in front-end into MySQL Database.

Technique

  • Python3

  • Lib: BeautifulSoup, urllib, pandas, pyyml pip3 install requirements.txt

  • Install virtual environment

  python3 -m venv demo
  • Database: Mysql
    • Install Mysql, MysqlConnector or Using Docker Container
  docker pull mysql
  docker run --name mysql_container -e MYSQL_ROOT_PASSWORD="RootAccount123" -d mysql
  docker ps
  • Database Management: phpMyadmin / Dbeaver
    • Install phpmyadmin package for further manage databases
    • Use default local IP and root user to login.
  • Environment: Any
  • Editor: Any

Workflow

  • Extract category in the menu, an output is list of url (Subcategory)
  • Using each input as parameter for page_parsing, which is parsing data of every products on fixed number page (customable)
  • Store raw data into MySQL

Start the Pipeline

  • Start the Python venv (demo)
source demo/bin/activate
  • Start the main_build.py file
python3 main_build.py

Next step

  • clean raw data for useable
  • create pipeline for scheduling run
  • apply model, analysis

Changelog

alt text

tiki_data_scrapper's People

Contributors

longbuivan avatar

Watchers

James Cloos avatar Thông Bùi avatar  avatar

Forkers

dieptran43

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.