Giter Club home page Giter Club logo

Comments (7)

ianlini avatar ianlini commented on May 25, 2024

You can try this:

stocks = [Stock(symbol) for symbol in ['2330', '6515']]

I don't think it's a good idea to allow Stock(['2330', '6515']).
Maybe you can elaborate more on your use case?

from twstock.

chingwen823 avatar chingwen823 commented on May 25, 2024

thanks you are right
what I trying to do is to compare a group of stocks with another

I will maintain a local dataset instead

by the way , the time limitation of connections of twes seems to be 3times/5sec

from twstock.

ianlini avatar ianlini commented on May 25, 2024

Yeah, it's very easy to be banned by TWSE. I always add a 1~5s random sleep between each request.

from twstock.

chingwen823 avatar chingwen823 commented on May 25, 2024

我很好奇 一般限制是單位時間裡的連線數
如果不重建connection,連線的sesssion沒斷 應該可以一直無限去下查詢??(就不會被ban是嗎?)

from twstock.

ianlini avatar ianlini commented on May 25, 2024

我有想過這個問題,不過沒有測試過
另外 user agent 可能也有影響
不知道有沒有人測試過?

from twstock.

twmht avatar twmht commented on May 25, 2024

@chingwen823

要如何作到不重建 connection 但是可以換查詢?

from twstock.

chingwen823 avatar chingwen823 commented on May 25, 2024

from twstock.

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.