A simple Dart wrapper for fetching, parsing and extracting notices from Visva-Bharati, Santiniketan's Official website
Show some ❤️ by putting ⭐
This plugin is readily available for use.
- Can fetch list of notices from Visva-Bharati, Santiniketan's Official Website
- Parse them and extract them from html page
- Clean up data and convert it to
Map<String, Map<String, String>>
- Can store processed data in
JSON
file - Can read data back from
JSON
file and convert it toMap<String, Map<String, String>>
, so that it can be used again
FetchNotice().fetch().then(
(value) {
// more code coming
},
onError: (e) => print(e),
);
ParseNotice().parseIt(value);
StoreNotice.storeIt('data.json', ParseNotice().parseIt(value)).then(
(val) => print(val ? 'Success' : 'Failure'),
onError: (e) => print(e),
);
ExtractFromJson.extractIt('data.json').then(
(data) => print(data),
onError: (e) => print(e),
);
FetchNotice().fetch().then(
(value) =>
StoreNotice.storeIt('data.json', ParseNotice().parseIt(value)).then(
(val) => print(val ? 'Success' : 'Failure'),
onError: (e) => print(e),
),
onError: (e) => print(e),
);
ExtractFromJson.extractIt('data.json').then(
(data) => print(data),
onError: (e) => print(e),
);
Make sure you've imported vb_noticeboard.dart
import 'package:vb_noticeboard/vb_noticeboard.dart';
Hoping it was helpful 😄