- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-25
|
¥»©«³Ì«á¥Ñ t8899 ©ó 2022-10-28 21:13 ½s¿è
¦^´_ t8899
¥Îbytag ¦Ó¥B³oºô¶§Ú¤§«eª±¹L
¥t¥~´N¬O¤W±´£¨ìªº ³oºô¶«á±¤£·|¤@¦¸¶]¥X¨Ó
¥u¯à¥Î ...
singo1232001 µoªí©ó 2022-10-28 18:32
Sub kimo()
Application.ScreenUpdating = False
Set DRIVER = CreateObject("Selenium.ChromeDriver")
DRIVER.AddArgument ("headless") 'µLÀYµøµ¡
DRIVER.Get "https://tw.stock.yahoo.com/class-quote?sectorId=2&exchange=TAI"
Set dd = DRIVER.FindElementByXPath("//*[@id=""main-1-ClassQuotesTable-Proxy""]/div/div[3]/div/div/div[2]")
Range("a:K").Clearcontents
Range("a1:k1") = Array("ªÑ²¼¦WºÙ", "¥N¸¹", "ªÑ»ù", "º¦¶^", "º¦¶^´T(%)", "¶}½L", "¬Q¦¬", "³Ì°ª", "³Ì§C", "¦¨¥æ¶q(±i)", "®É¶¡")
a = split(dd.Text, Chr(10))
b = UBound(a)
k = 11
s = 2
g = 1
For i = 0 To b
If i = k Then
k = k + 11
s = s + 1
g = 1
End If
Cells(s, g) = a(i)
g = g + 1
Next
End Sub
table ¿é¥X¸û§Ö?¥i±¤¥¦¤£¬Otable
¶^ªº¤U¤T¨¤§Î¨S§ì¨ì?¦p¦óª½±µ§ï¦¨"-"¸¹¿é¥X? |
|