https://github.com/xamantra/gh_trend
GitHub trending scraper for dart and flutter.
https://github.com/xamantra/gh_trend
dart flutter github-trending library package
Last synced: about 1 year ago
JSON representation
GitHub trending scraper for dart and flutter.
- Host: GitHub
- URL: https://github.com/xamantra/gh_trend
- Owner: xamantra
- License: bsd-3-clause
- Created: 2021-04-17T07:02:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-19T01:30:47.000Z (almost 5 years ago)
- Last Synced: 2024-11-15T06:39:35.039Z (over 1 year ago)
- Topics: dart, flutter, github-trending, library, package
- Language: Dart
- Homepage: https://pub.dev/packages/gh_trend
- Size: 80.1 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
GitHub trending scraper for dart and flutter.
---
## Trending repositories
```dart
var result = await ghTrendingRepositories();
```
The `ghTrendingRepositories()` method will return a list of `GithubRepoItem`.
It also provides optional parameters like:
```dart
var result = await ghTrendingRepositories(
spokenLanguageCode: 'en',
programmingLanguage: 'javascript',
dateRange: GhTrendDateRange.thisWeek, // or `today` or `thisMonth`.
);
```
---
## Trending developers
```dart
var result = await ghTrendingDevelopers();
```
The `ghTrendingDevelopers()` method will return a list of `GithubDeveloperItem`.
It also provides optional parameters like:
```dart
var result = await ghTrendingDevelopers(
programmingLanguage: 'javascript',
dateRange: GhTrendDateRange.thisWeek, // or `today` or `thisMonth`.
);
```
---
## Parameters
`spokenLanguageCode` - use the provided **ghSpokenLanguages** map to access all spoken languages. You can use the map *value* for the UI and map *key* for the parameter.
`programmingLanguage` - use the provided **ghProgrammingLanguages** map to access all programming languages. You can use the map *value* for the UI and map *key* for the parameter.
`dateRange` - use the **GhTrendDateRange** enum to access all possible date range. Call the provided method **ghDateRangeLabel(...)** for displaying the value to the UI.