ktools 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ktools-1.0.2 → ktools-1.0.3}/PKG-INFO +1 -1
- {ktools-1.0.2 → ktools-1.0.3}/ktools/stock.py +2 -1
- {ktools-1.0.2 → ktools-1.0.3}/ktools.egg-info/PKG-INFO +1 -1
- {ktools-1.0.2 → ktools-1.0.3}/setup.py +1 -1
- {ktools-1.0.2 → ktools-1.0.3}/README.rst +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools/__init__.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools/altair.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools/bokeh.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools/diskcache.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools/kanichart.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools/numpy.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools/pandas.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools.egg-info/SOURCES.txt +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools.egg-info/dependency_links.txt +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/ktools.egg-info/top_level.txt +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/setup.cfg +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/tests/__init__.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/tests/test_sample.py +0 -0
- {ktools-1.0.2 → ktools-1.0.3}/tests/test_stock.py +0 -0
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"""
|
|
12
12
|
import pandas as pd
|
|
13
13
|
from kanirequests import KaniRequests
|
|
14
|
+
from io import StringIO
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
def get_nehaba_limit(last_execution):
|
|
@@ -164,7 +165,7 @@ def get_ms_warrant_history(stock_code):
|
|
|
164
165
|
session = KaniRequests(headers=headers)
|
|
165
166
|
result = session.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vQ-SPWgeUiBs8pcrj9vFxYI7-9srSjfy2JDSoJ2-gZ4-bqhCltL2qvzZ2AMkNV7xZ72GH9_jnWqfHM0/pubhtml/sheet?headers=false&gid=0")
|
|
166
167
|
table = result.html.find("table")[0]
|
|
167
|
-
df = pd.read_html(table.raw_html.decode("utf8"), skiprows=4)[0]
|
|
168
|
+
df = pd.read_html(StringIO(table.raw_html.decode("utf8")), skiprows=4)[0]
|
|
168
169
|
df = df.iloc[:, 1:4]
|
|
169
170
|
df.columns = ["published_date", "stock_code", "name"]
|
|
170
171
|
return df[df["stock_code"] == str(stock_code)]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|