Giter Club home page Giter Club logo

web-crawler-news's Introduction

GitHub Views GitHub Clones

STEP.1 CLONE

git clone https://github.com/Junwu0615/Web-Crawler-News.git

STEP.2 INSTALL PACKAGES

pip install -r requirements.txt

STEP.3 RUN

python Web-Crawler-News.py -h

#If you encounter the following problems :

ModuleNotFoundError: No module named 'python'.
ModuleNotFoundError: No module named 'pip'.

  1. 去檢查 C:\Users\xxx\AppData\Local\Programs\Python 是否有檔案。
  2. 若無,則去 Python 官網下載並安裝。
  3. 接著再次執行該指令;若一樣出現同樣錯誤,去 系統環境變數 當中新增 2 個路徑 ( Path ) 即可 :
    • C:\Users\ xxx \AppData\Local\Programs\Python\ Python版本
    • C:\Users\ xxx \AppData\Local\Programs\Python\ Python版本 \Scripts

STEP.4 HELP

STEP.5 EXAMPLE

I. 查詢台灣水庫現況

台灣水庫 網頁,將其內容抓下來到當前目錄,並命名 台灣水庫當前現況.csv

  • -t 台灣水庫
  • -p ./台灣水庫當前現況.csv
python Web-Crawler-News.py -t 台灣水庫 -p ./台灣水庫當前現況.csv
  • 台灣水庫當前現況.csv
  • 台灣水庫當前現況.csv

II. 查詢台灣股票現況

台灣股票 網頁,將其內容抓下來至當前目錄的檔案夾 ( 股票 ) ,並命名 台灣股票.csv

  • -t 台灣股票
  • -p ./股票/台灣股票.csv
python Web-Crawler-News.py -t 台灣股票 -p ./股票/台灣股票.csv
  • 台灣股票.csv
  • 台灣股票.csv

抓取資訊來源

參考來源

web-crawler-news's People

Contributors

junwu0615 avatar

Stargazers

 avatar

Watchers

 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.