An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          





GitHub trending scraper for dart and flutter.



Pub Version







---

## 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.