Skip to content

8treenet/bbgwire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bbgwire

一个简单的 Go 程序,用于从网站抓取文章数据并输出为 JSON 格式。

功能

  • 抓取网站的前 50 篇文章
  • 解析文章内容、链接和发布时间
  • 输出 JSON 格式的结构化数据

安装

go install github.com/8treenet/bbgwire@latest

使用

bbgwire

输出示例

程序会输出 JSON 格式的文章列表:

[
  {
    "Content": "文章标题内容",
    "URL": "https://example.com/article",
    "Published": "2026-03-29T00:00:00Z"
  }
]

数据结构

type Article struct {
    Content   string // 文章内容
    URL       string // 文章链接
    Published string // 发布时间
}

依赖

许可证

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages