搜尋套件、儲存庫與 APP 分類

套件詳情v3.0.3

dart_rss

Dart 解析器,用於 RSS1.0、RSS2.0 和 Atom 頻道。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2630
喜歡數
49
Pub 分數
110

安裝套件

flutter pub add dart_rss

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個用於解析 RSS 1.0、RSS 2.0 和 Atom 訂閱內容的 Dart 套件。它讓應用程式能有效率地消費與處理來自部落格、新聞網站及其他網路訂閱內容的聚合資料。此套件輕量且設計為可在多個平台使用,包含行動裝置、網頁與桌面端。支援標準的訂閱結構,並提供簡單易用的 API 來擷取標題、描述、連結與發布日期。非常適合需要即時內容更新或內容整合的應用程式。

適用情境

  • 解析部落格來源
  • 聚合新聞內容
  • 建立播客聽眾
  • 從網站獲取更新
  • 在應用程式中顯示動態內容

主要特色

  • 支援 RSS 1.0、RSS 2.0 和 Atom 格式
  • 跨平台相容性
  • 簡單直覺的 API
  • 輕量且快速的解析
  • 強大的錯誤處理

適合對象

  • 內容聚合應用
  • 新聞閱讀器
  • 播客應用
  • RSS 源整合
  • 需要即時更新的應用程式

使用建議

  • 不支援提要驗證
  • 僅限解析,不支援取得
  • 無內建快取
  • 需要外部 HTTP 客戶端來取得來源
  • 不適合複雜的餵送轉換

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Dart RSS - RSS parser and serializer for Dart

Built by the Flutter Bounty Hunters


A dart package for parsing and generating RSS1.0, RSS2.0, and Atom feeds.

Example

Import the package into your dart code using:

import 'package:dart_rss/dart_rss.dart';

To parse string into RssFeed object use:

var rssFeed = new RssFeed.parse(xmlString); // for parsing RSS 2.0 feed
var atomFeed = new AtomFeed.parse(xmlString); // for parsing Atom feed
var rss1Feed = new Rss1Feed.parse(xmlString); // for parsing RSS 1.0 feed
Preview

RSS

feed.title
feed.description
feed.link
feed.author
feed.items
feed.image
feed.cloud
feed.categories
feed.skipDays
feed.skipHours
feed.lastBuildDate
feed.language
feed.generator
feed.copyright
feed.docs
feed.managingEditor
feed.rating
feed.webMaster
feed.ttl
feed.dc

RssItem item = feed.items.first;
item.title
item.description
item.link
item.categories
item.guid
item.pubDate
item.author
item.comments
item.source
item.media
item.enclosure
item.dc

Atom

feed.id
feed.title
feed.updated
feed.items
feed.links
feed.authors
feed.contributors
feed.categories
feed.generator
feed.icon
feed.logo
feed.rights
feed.subtitle

AtomItem item = feed.items.first;
item.id
item.title
item.updated
item.authors
item.links
item.categories
item.contributors
item.source
item.published
item.content
item.summary
item.rights
item.media

RSS 1.0

feed.title
feed.description
feed.link
feed.items
feed.image
feed.updatePeriod
feed.updateFrequency
feed.updateBase
feed.dc

Rss1Item item = feed.items.first;
item.title
item.description
item.link
item.dc
item.content

Origin

This package was forked from WebFeed.

@sudame continued work after the fork.

In June, 2023, this package was transferred to @Flutter-Bounty-Hunters

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案