Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itzmeanjan/vb_noticeboard
A simple Dart wrapper for fetching, parsing and extracting notices from Visva-Bharati, Santiniketan's Official website
https://github.com/itzmeanjan/vb_noticeboard
dart dartlang university visva-bharati web-scraping website
Last synced: 2 days ago
JSON representation
A simple Dart wrapper for fetching, parsing and extracting notices from Visva-Bharati, Santiniketan's Official website
- Host: GitHub
- URL: https://github.com/itzmeanjan/vb_noticeboard
- Owner: itzmeanjan
- License: mit
- Created: 2019-06-02T13:54:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T07:57:28.000Z (over 5 years ago)
- Last Synced: 2023-08-20T23:27:50.683Z (about 1 year ago)
- Topics: dart, dartlang, university, visva-bharati, web-scraping, website
- Language: Dart
- Size: 81.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vb_noticeboard
A simple Dart wrapper for fetching, parsing and extracting notices from **Visva-Bharati, Santiniketan's** Official websiteShow some :heart: by putting :star:
**This plugin is readily available for [use](https://pub.dev/packages/vb_noticeboard).**
## what does it do ?
- Can fetch list of notices from *Visva-Bharati, Santiniketan's* Official [Website](http://www.visvabharati.ac.in)
- Parse them and extract them from html page
- Clean up data and convert it to `Map>`
- Can store processed data in `JSON` file
- Can read data back from `JSON` file and convert it to `Map>`, so that it can be used again## how to use it ?
### Fetching Notices :
```dart
FetchNotice().fetch().then(
(value) {
// more code coming
},
onError: (e) => print(e),
);
```
### Parsing HTML page to `Map>` :
```dart
ParseNotice().parseIt(value);
```
### Storing parsed Notices :
```dart
StoreNotice.storeIt('data.json', ParseNotice().parseIt(value)).then(
(val) => print(val ? 'Success' : 'Failure'),
onError: (e) => print(e),
);
```
### Extracting Notices from JSON :
```dart
ExtractFromJson.extractIt('data.json').then(
(data) => print(data),
onError: (e) => print(e),
);
```
### Merging up all of them :
```dart
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`
```dart
import 'package:vb_noticeboard/vb_noticeboard.dart';
```Hoping it was helpful :smile: