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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ktools
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: kirin's toolkit.
5
5
  Home-page: https://github.com/fx-kirin/ktools
6
6
  Author: fx-kirin
@@ -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)]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ktools
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: kirin's toolkit.
5
5
  Home-page: https://github.com/fx-kirin/ktools
6
6
  Author: fx-kirin
@@ -2,7 +2,7 @@ import setuptools
2
2
 
3
3
  setuptools.setup(
4
4
  name="ktools",
5
- version="1.0.2",
5
+ version="1.0.3",
6
6
  url="https://github.com/fx-kirin/ktools",
7
7
 
8
8
  author="fx-kirin",
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