Compare commits
No commits in common. "dffa91eb2365d9035cfcc02ffab743a2060782f0" and "c787b065ad23d3991fcd5f8a17581e8631b73c94" have entirely different histories.
dffa91eb23
...
c787b065ad
21
CHANGELOG.md
21
CHANGELOG.md
@ -3,27 +3,6 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
## 2022-05-05
|
|
||||||
|
|
||||||
### Changes
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Packages with breaking changes:
|
|
||||||
|
|
||||||
- There are no breaking changes in this release.
|
|
||||||
|
|
||||||
Packages with other changes:
|
|
||||||
|
|
||||||
- [`wyatt_medium_feeds` - `v1.0.1`](#wyatt_medium_feeds---v101)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### `wyatt_medium_feeds` - `v1.0.1`
|
|
||||||
|
|
||||||
- **FIX**: remove useless example file.
|
|
||||||
|
|
||||||
|
|
||||||
## 2022-05-02
|
## 2022-05-02
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
## 1.0.1
|
|
||||||
|
|
||||||
- **FIX**: remove useless example file.
|
|
||||||
|
|
||||||
## 1.0.0
|
## 1.0.0
|
||||||
|
|
||||||
- Initial version.
|
- Initial version.
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
// ignore_for_file: avoid_print
|
||||||
|
|
||||||
|
import 'package:wyatt_medium_feeds/wyatt_medium_feeds.dart';
|
||||||
|
|
||||||
|
Future<void> main() async {
|
||||||
|
final mediumFeed = MediumFeed.fromPublicationName('flutter');
|
||||||
|
await mediumFeed.parse();
|
||||||
|
|
||||||
|
print(mediumFeed.url);
|
||||||
|
final feed = mediumFeed.feed;
|
||||||
|
|
||||||
|
print(feed.title);
|
||||||
|
print('${feed.image?.url}\n');
|
||||||
|
|
||||||
|
// if ((feed.items?.length ?? 0) > 0) {
|
||||||
|
// for (final item in feed.items!) {
|
||||||
|
// print(item.title);
|
||||||
|
// print(item.pubDate?.toIso8601String());
|
||||||
|
// print(item.guid);
|
||||||
|
// print(item.dc?.creator);
|
||||||
|
// print('${item.content?.value.readingTime().inMinutes} min read');
|
||||||
|
|
||||||
|
// if ((item.categories?.length ?? 0) > 0) {
|
||||||
|
// final StringBuffer categories = StringBuffer('[');
|
||||||
|
// for (final category in item.categories!) {
|
||||||
|
// categories.write('"${category.value}"');
|
||||||
|
// if (item.categories!.indexOf(category) <
|
||||||
|
// item.categories!.length - 1) {
|
||||||
|
// categories.write(', ');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// categories.write(']');
|
||||||
|
// print(categories);
|
||||||
|
// }
|
||||||
|
// print('\n');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
for (final MediumArticle a in mediumFeed.articles) {
|
||||||
|
print(a.title);
|
||||||
|
print(a.author);
|
||||||
|
print(a.guid);
|
||||||
|
print(a.summary);
|
||||||
|
print(a.publishDate);
|
||||||
|
print(a.readingTime);
|
||||||
|
print('\n');
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
name: wyatt_medium_feeds
|
name: wyatt_medium_feeds
|
||||||
description: Medium flux read for Flutter
|
description: Medium flux read for Flutter
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_medium_feeds
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_medium_feeds
|
||||||
version: 1.0.1
|
version: 1.0.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.16.2 <3.0.0'
|
sdk: '>=2.16.2 <3.0.0'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user