-- 定义一个函数,用于解析HTML内容并获取视频链接
parseHTML :: String -> IO [String]
parseHTML html = do
soup <- parseTagsoup html
let videos = [a ! "href" | a <- findElementsByTagName "a" soup]
return videos
-- 主函数,用于启动整个爬虫程序
main :: IO ()
main = do
html <- getHTML "https://www.10jqka.com.cn/"
links <- parseHTML html
forM_ links $ print
```