```python import requests from bs4 import BeautifulSoup as bs4 url = "http://mops.twse.com.tw/mops/web/ajax_t05st10_ifrs" payload = "encodeURIComponent=1&firstin=true&step=0&off=1&yearmonth=10604&TYPEK=sii&year=106&month=04&co_id=2892" headers = { 'content-type': "application/x-www-form-urlencoded", 'cookie': "newmops2=co_id%3D2892%7Cyear%3D%7Cmonth%3D%7C", 'cache-control': "no-cache", } response = requests.request("POST", url, data=payload, headers=headers) response.encoding = 'utf8' dom = bs4(response.text, "html5lib") for data in dom.find_all("td"): if data.string != None: print(data.string.strip()) ``` result: 
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.