From 5319e06b900f9e64721aa8bd80e2cc1d0aacc1a2 Mon Sep 17 00:00:00 2001 From: JeffBla Date: Thu, 11 Apr 2024 12:14:17 +0800 Subject: [PATCH] Fix codes HTTP to HTTPS The `isin.twse.com.tw` no longer accepted HTTP connection. --- twstock/codes/fetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twstock/codes/fetch.py b/twstock/codes/fetch.py index e6b3332..19fd4cd 100644 --- a/twstock/codes/fetch.py +++ b/twstock/codes/fetch.py @@ -15,8 +15,8 @@ from twstock.proxy import get_proxies -TWSE_EQUITIES_URL = "http://isin.twse.com.tw/isin/C_public.jsp?strMode=2" -TPEX_EQUITIES_URL = "http://isin.twse.com.tw/isin/C_public.jsp?strMode=4" +TWSE_EQUITIES_URL = "https://isin.twse.com.tw/isin/C_public.jsp?strMode=2" +TPEX_EQUITIES_URL = "https://isin.twse.com.tw/isin/C_public.jsp?strMode=4" ROW = namedtuple( "Row", ["type", "code", "name", "ISIN", "start", "market", "group", "CFI"] )