Code Monkey home page Code Monkey logo

Comments (3)

ianleu avatar ianleu commented on June 30, 2024

應該是網站的擷取資料格式改版了
url='http://www.twse.com.tw/ch/trading/exchange/STOCK_DAY/STOCK_DAYMAIN.php?'
payload={'download':'csv','CO_ID':'2330','query_year':'2016'i,'query_month':'8'}
res_data=requests.post(url,data=payload,stream=True)
這樣就可以抓到2016年8月的資料了,可是不知道怎樣修改現有模組

from grs.

sshorse731 avatar sshorse731 commented on June 30, 2024

使用附件更新/usr/local/lib/python2.7/dist-packages/grs/fetch_data.py
fix_failed_to_get_twse_data.patch.txt

from grs.

toomore avatar toomore commented on June 30, 2024

@wenhuay @ianleu @sshorse731 已修正更新到 v0.7.0

@sshorse731 感謝提供修正,但 grs 內部不使用 requests,直接只用 urllib3

from grs.

Related Issues (20)

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.