https://github.com/myfreax/github_trending
Get the popular repository on github. You can also get popular repository by language or date(daily, weekly, monthly).
https://github.com/myfreax/github_trending
api dart dart2 flutter github github-trending languages server
Last synced: 2 months ago
JSON representation
Get the popular repository on github. You can also get popular repository by language or date(daily, weekly, monthly).
- Host: GitHub
- URL: https://github.com/myfreax/github_trending
- Owner: myfreax
- License: mit
- Created: 2019-04-15T06:17:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T14:21:55.000Z (over 5 years ago)
- Last Synced: 2024-10-14T09:25:55.866Z (7 months ago)
- Topics: api, dart, dart2, flutter, github, github-trending, languages, server
- Language: Dart
- Homepage: https://www.myfreax.com/
- Size: 29.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Github trending api for dart
Get the popular repository on github. You can also get popular repository by language or time(daily, weekly, monthly).## Install
[install from pub dev](https://pub.dev/packages/github_trend#-installing-tab-)
## Usage
A simple usage example:
```dart
import 'package:github_trend/github_trend.dart';
import 'package:html/dom.dart';main() async {
GithubTrend githubTrend = GithubTrend();
try {
Document document = await githubTrend.fetchTrending();
List repos = Repos(document).list;
List languages = Languages(document).list;
repos[0].name;
print(languages);
} catch (e) {
// handle error
}
}
```## Doc
[Online Doc](https://pub.dev/packages/github_trend/versions)Local Doc
```shell
git clone [email protected]:huangyanxiong01/github_trending.git
pub get
dartdoc
pub global activate dhttpd
dhttpd --path doc/api
```
Server started on port 8080## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/huangyanxiong01/github_trending/issues