Giter VIP home page Giter VIP logo

bsr_data_downloader's Introduction

事前設定

1. 設定 bsr.conf 檔案.

bsr_download_folder=你要下載到哪個資料夾放
google_drive_folder_id=你的google drive資料夾,下載完後將會把檔案上傳到這邊


你可以在這個地方找到自己的folder id

2. 修改 log4j2.xml

修改log4j2.xml檔案 如果有需要

3. 下載 google api credentials

Go to https://developers.google.com/drive/api/v3/quickstart/java

將檔案下載後放到./config資料夾內

4. 啟動這個程式.

遇到 "PKIX path building failed"

1.下載憑證

https://www.twse.com.tw/zh/

  • 點選"詳細資料"
  • 點選"複製到檔案"

  • 按下下一步
  • 選擇BASE64編碼
  • 儲存

2.匯入憑證

  • 打開command line

  • 到JAVA_HOME/jre/lib/security

  • 輸入下列指令匯入憑證 -file 後方請指定前面下載的憑證

    keytool -import -alias twse -keystore cacerts -file D:\twse.cer
    keytool -import -alias bsr -keystore cacerts -file D:\bsr.cer 
    
  • keytool 預設密碼為 changeit

bsr_data_downloader's People

Contributors

boxi79 avatar dependabot[bot] avatar qqdog1 avatar

bsr_data_downloader's Issues

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.