Skip to content

Commit

Permalink
新增上櫃資料
Browse files Browse the repository at this point in the history
  • Loading branch information
anitaliu922 committed Sep 11, 2022
1 parent 9658e53 commit dbc8110
Show file tree
Hide file tree
Showing 2 changed files with 1,157 additions and 345 deletions.
2 changes: 2 additions & 0 deletions crawler/thaubing_esg/spiders/company_twse.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class CompanyTwseSpider(CSVFeedSpider):
name = 'company_twse'
start_urls = [
'https://mopsfin.twse.com.tw/opendata/t187ap03_L.csv', # 上市公司 https://data.gov.tw/dataset/18419
'https://mopsfin.twse.com.tw/opendata/t187ap03_O.csv', # 上櫃公司 https://data.gov.tw/dataset/25036
'https://mopsfin.twse.com.tw/opendata/t187ap03_R.csv', # 興櫃公司 https://data.gov.tw/dataset/28568
'https://mopsfin.twse.com.tw/opendata/t187ap03_P.csv', # 公開發行公司 https://data.gov.tw/dataset/28567
]
Expand All @@ -29,6 +30,7 @@ def parse_row(self, response, row):
def _parse_company_type(self, response_url):
switcher = {
't187ap03_L': '上市公司',
't187ap03_O': '上櫃公司',
't187ap03_R': '興櫃公司',
't187ap03_P': '公開發行公司',
}
Expand Down
Loading

0 comments on commit dbc8110

Please sign in to comment.