Giter Club home page Giter Club logo

watsons-tw-store-finder's Introduction

watsons-tw-store-finder

使用Python的BeautifulSoup套件,擷取屈臣氏門市列表。

資料來源: StoreFinder | 屈臣氏 Watsons webpage

輸出結果(csv檔): webpage

Requirements

須安裝Python3以及Python語言的BeautifulSoup4套件

安裝BeautifulSoup4 (for Ubuntu 16.04)

sudo apt-get install python3-bs4

Code structure

File/Folder Description
.gitignore gitignore
README.md README
screenshots README.md使用的截圖
store-finder-crawler.py 網頁爬蟲的程式碼
store-finder.csv 網頁爬蟲的結果

輸出結果

執行 store-finder-crawler.py ,會將結果輸出為CSV檔案:

  • store-finder.csv

    除標題欄、標題列之外,共有5欄 * N列。

    欄位名稱 資料範例
    storeName 一心
    storeAddress 高雄市前鎮區一心二路45號,高雄市,高雄市前鎮區,802
    storeTel (07)3300900
    storeHours 一~日9:30AM-11:00PM

    其中「營業時間」包含換行字元。

我的開發環境:

  • Ubuntu 16.04.3 LTS
  • Python 3.5.2
  • PyCharm Community Edition 2017.2.4

尚未在其他環境測試,不確定是否能支援。

watsons-tw-store-finder's People

Contributors

olycats avatar

Watchers

 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.