leoafarias / gh_trend

GitHub trending scraper for dart and flutter.

Home Page:https://pub.dev/packages/gh_trend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub trending scraper for dart and flutter.

Pub Version


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.

About

GitHub trending scraper for dart and flutter.

https://pub.dev/packages/gh_trend

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%