ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ·Q½Ð°Ýhttp://mops.twse.com.tw/mops/web/t164sb04³o­Óºô§}ªºªí®æ¥Îpython«ç»ò§ì?

[µo°Ý] ·Q½Ð°Ýhttp://mops.twse.com.tw/mops/web/t164sb04³o­Óºô§}ªºªí®æ¥Îpython«ç»ò§ì?

§Ú·Q¼g­Ópython§ì¤Uºô­¶¸ê®Æªºµ{¦¡½X
¦ý¬O³o­Óºô¯¸¤ñ¸û¯S§O ­ì©l½X¬Ý¤£¨ìÅã¥Üªºªí®æ
½Ð°Ý­n¦p¦ó¼g¤~§ì±o¨ì³o­Óªí®æ©O  «ô°U

from selenium import webdriver
from time import sleep
url = 'http://mops.twse.com.tw/mops/web/t164sb04'
browser = webdriver.Chrome()
browser.get(url)
browser.find_element_by_id('isnew').send_keys('¾ú¥v¸ê®Æ')
browser.find_element_by_id('co_id').send_keys('2330')
browser.find_element_by_id('year').send_keys('106')
browser.find_element_by_id('season').send_keys('4')
browser.find_element_by_xpath("//input[@value=' ¬d¸ß ']").click()
±µ¤U¨ÓÁöµM¥i¥H¬Ý¨ìªí®æ «o¤£ª¾¦p¦ó§ì
¯à³Â·ÐÀ°§Ú·Q·Q¿ìªk¶Ü?
ÁÂÁÂ

browser.page_source
¸Õ¸Õ...

¥Îfrom bs4 import BeautifulSoup¥h¸ÑªR
¥Îimport pandas¤]¥i

¦pªG¸Ñ±¼¤F, ´N©¿²¤§a....

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD