gh_trend 1.0.3 gh_trend: ^1.0.3 copied to clipboard
GitHub trending (developers & repositories) scraper for dart and flutter.
GitHub trending scraper for dart and flutter.
Trending repositories #
var result = await ghTrendingRepositories();
The ghTrendingRepositories()
method will return a list of GithubRepoItem
.
It also provides optional parameters like:
var result = await ghTrendingRepositories(
spokenLanguageCode: 'en',
programmingLanguage: 'javascript',
dateRange: GhTrendDateRange.thisWeek, // or `today` or `thisMonth`.
);
Trending developers #
var result = await ghTrendingDevelopers();
The ghTrendingDevelopers()
method will return a list of GithubDeveloperItem
.
It also provides optional parameters like:
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.