Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 808 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 808 Bytes

ffxiv-cn-news-crawler

TypeScript写的爬虫

食用

提供方法

getNews()

可选参数

{
  url: string
  params: {
      url: string
      category: string
      pageIndex: number
      pageSize: number
  }
}

消息分类有以下几种

  • 所有消息:all-news
  • 置顶消息:topics
  • 新闻:news
  • 公告:announcement
  • 官方活动:official-events
  • 第三方活动:unofficial-events

返回类型

返回一个数组,每个元素存有以下属性

  id            :Number     // 消息的编号
  title         :String     // 标题
  url           :String     // 链接
  time          :Date       // 发布时间
  image         :String     // 封面图片的链接
  description   :String     // 消息概要