Skip to content

Instantly share code, notes, and snippets.

@Heng-xiu
Last active September 28, 2024 17:25
Show Gist options
  • Save Heng-xiu/19006e6a363b38fc59987d6756126a4c to your computer and use it in GitHub Desktop.
Save Heng-xiu/19006e6a363b38fc59987d6756126a4c to your computer and use it in GitHub Desktop.
這個 Python 程式設計用來爬取 iThome 鐵人賽的文章,並將內容保存為 Markdown 文件,同時生成相關統計資料。 主要功能 爬取指定 URL 的鐵人賽文章列表 解析每篇文章的詳細內容 將文章內容保存為 Markdown 格式 生成文章統計資料(包括標題、天數、URL、瀏覽次數和字數) 將統計資料保存為 JSON 文件
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment