Coder Social home page Coder Social logo

sse-option-crawler's Introduction

SSE Option Crawler

demo

Run

# python3.5+
curl https://raw.githubusercontent.com/casprwang/sse-option-crawler/master/main.py | python3

Depending on your network, it might take up to a few minutes, be patient.

Output

Once finished, you will get a CSV file named sse_option_data.csv with a structure like this:

Source

Sina stock

License

MIT © Casper Wang

sse-option-crawler's People

Contributors

casprwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sse-option-crawler's Issues

连接主机报错,是否需要更新url?

链接主机报错
Traceback (most recent call last):
File "H:/cats/sina_data_service/sina-stock-crawler-master/main.py", line 96, in
date = get_expire_date(get_expire_url(date_string[:6]))
File "H:/cats/sina_data_service/sina-stock-crawler-master/main.py", line 80, in get_expire_date
with urllib.request.urlopen(url_link) as url:
File "F:\soft\anaconda\lib\urllib\request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "F:\soft\anaconda\lib\urllib\request.py", line 526, in open
response = self._open(req, data)
File "F:\soft\anaconda\lib\urllib\request.py", line 544, in _open
'_open', req)
File "F:\soft\anaconda\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "F:\soft\anaconda\lib\urllib\request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "F:\soft\anaconda\lib\urllib\request.py", line 1321, in do_open
r = h.getresponse()
File "F:\soft\anaconda\lib\http\client.py", line 1331, in getresponse
response.begin()
File "F:\soft\anaconda\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "F:\soft\anaconda\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "F:\soft\anaconda\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

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.