2024-07-17 18:59:09 +00:00
# readability
2024-07-17 20:32:02 +00:00
A flutter plugin that wraps the native Readability [library ](https://github.com/go-shiori/go-readability ) for Android and iOS.
2024-07-17 18:59:09 +00:00
2024-07-17 20:32:02 +00:00
## Usage
Simply call the `parseAsync` method with the URL of the article you want to parse. The method returns a `ArticleResult` object with the title, content, and excerpt of the article.
2024-07-17 18:59:09 +00:00
2024-07-17 20:32:02 +00:00
```dart
import 'package:readability/readability.dart';
2024-07-17 18:59:09 +00:00
2024-07-17 20:32:02 +00:00
final result = await Readability.parseAsync('https://example.com/article');
print(result.title);
print(result.content);
2024-07-17 18:59:09 +00:00
```
2024-07-17 20:32:02 +00:00
An example of how to use this plugin can be found in the `example` directory.