Unofficial search provider for Medium for dart/flutter apps.

Overview

medium_search

Pub Package

Unofficial search provider for Medium that can be used in dart or flutter apps.

This library provides you an easy way to get search results from Medium website.

It supports searching for:

  • posts
  • tags
  • users
  • publications

Insalling

  • add to your pubspec.yaml:
medium_search: ^0.0.1
  • get it
dart pub get
  • import it
import 'package:medium_search/medium_search.dart';
  • initialize
var medium = Medium();

get tags:

var tags = await medium.getTags("Hello");

for (var tag in tags) {
    print("The tag `${tag.name}` has ${tag.postCount} posts.");
}

get posts:

var page = await medium.getPosts("hello");

for (var post in page.posts) {
    print("${post.title} => ${post.id}");
}

and you can get the next page by:

var nextPage = await page.nextPage();

or by getting specific page number:

var page = await medium.getPosts("Hello", page: 3); // which returns the 3th page for the query 'Hello'.

get users:

var page = await medium.getUsers("ronaldo");

for (var user in page.users) {
    print("${user.name} => ${user.bio}");
}

get publications:

var page = await medium.getPublications("Hello");

for (var public in page.users) {
    print("${public.name} => ${public.description}");
}
You might also like...

Flutter package: Easy and powerful internationalization using Dart extensions.

Flutter package: Easy and powerful internationalization using Dart extensions.

i18n_extension Non-boilerplate Translation and Internationalization (i18n) for Flutter Start with a widget with some text in it: Text("Hello, how are

Dec 29, 2022

Pure Dart and Flutter package for Android,IOS and Web

Pure Dart and Flutter package for Android,IOS and Web

Fancy Flutter Alert Dialog Pure Dart and Flutter package for Android,IOS and Web A flutter Package to show custom alert Dialog,you can choose between

Sep 23, 2022

Package ANAlysis for Dart

A library for analyzing Dart packages. It invokes executables from the Dart SDK (or from the Flutter SDK if the package uses Flutter). Reports are cre

Dec 30, 2022

Making-form - A form design with dart programming and auto next facility

Making-form - A form design with dart programming and auto next facility

Making-form - A form design with dart programming and auto next facility

Nov 15, 2022

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

toggle_bar A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android. Installation Depend on it. dependencies:

Jul 13, 2022

The complete solution for Dart command-line interfaces

The complete solution for Dart command-line interfaces, inspired by node commander.js which created by tj.

Feb 21, 2020

Flutter package: Assorted layout widgets that boldly go where no native Flutter widgets have gone before.

Flutter package: Assorted layout widgets that boldly go where no native Flutter widgets have gone before.

assorted_layout_widgets I will slowly but surely add interesting widgets, classes and methods to this package. Despite the package name, they are not

Dec 22, 2022

Flutter Carousel Pro - A Flutter Carousel widget

Flutter Carousel Pro - A Flutter Carousel widget

Carousel Extended A Flutter Carousel widget. Usage As simple as using any flutter Widget. Based on Carousel Pro but extended to be able to navigate be

Dec 7, 2020

Flutter-useful-widgets - Flutter Useful Widgets

Flutter-useful-widgets - Flutter Useful Widgets

useful_widgets This package makes it easy to build apps by providing a list of simple and useful widgets. import 'package:useful_widgets/useful_widget

Jun 20, 2022
Releases(v0.0.1)
Owner
Clone Conflict
Clone Conflict
A provider that passes EventBus down to all the widgets.

A provider that passes EventBus down to all the widgets.

null 0 Jul 9, 2022
Provider support for overlay, make it easy to build toast and In-App notification.

overlay_support Provider support for overlay, make it easy to build toast and In-App notification. this library support ALL platform Interaction If yo

Bin 340 Jan 1, 2023
Powerful Complete and Beautiful Search Component for Flutter

A highly customizable search component to accelerate your development. Overview There are many search or search components for Flutter, however this o

Tiagosito 31 Jul 27, 2022
Widget to let the user search through a keyword string typed on a customizable keyboard in a single or multiple choices list presented as a dropdown in a dialog box or a menu.

searchable_dropdown Widget to let the user search through a keyword string typed on a customizable keyboard in a single or multiple choices list prese

Bobby Stenly Irawan 108 Sep 11, 2022
A highly customizable multiple selection widget with search functionality.

A highly customizable multiple selection widget with search functionality.

null 5 Dec 19, 2022
Full customable rolling switch widget for flutter apps based on Pedro Massango's 'crazy-switch' widget

lite_rolling_switch Full customable rolling switch widget for flutter apps based on Pedro Massango's 'crazy-switch' widget https://github.com/pedromas

Eduardo Muñoz 48 Dec 1, 2022
Pick colors from pixels of everything visible in your Flutter apps

pixel_color_picker A widget that extracts colors from its childs. This package lets you basically extract colors from everything in your screen.

Eleandro Duzentos 14 Oct 17, 2022
A collapsible sidebar for Flutter apps implementing the Material Design.

collapsible_sidebar A collapsible sidebar for Flutter apps implementing the Material Design. Features Material Design Pre-built customizable tile widg

Arjun Sinha 121 Nov 30, 2022
A light-weight Emoji 📦 for Dart & Flutter with all up-to-date emojis written in pure Dart 😄 . Made from 💯% ☕ with ❤️!

dart_emoji ?? A light-weight Emoji ?? for Dart & Flutter with all up-to-date emojis written in pure Dart ?? . Made from ?? % ☕ with ❤️ ! This is a for

Gatch 18 Mar 22, 2022
Custom widgets and utils using Flutter framework widgets and Dart language

reuse_widgets_and_utils The custom widgets and utils using Flutter framework widgets and Dart programming language. Getting Started This project is a

null 1 Oct 29, 2021