diffbot 0.1.1

  • README.md
  • Installing
  • Versions
  • 24

#Diffbot A Dart client library for Diffbot APIs.

Q: What is Diffbot?
A: Diffbot is "a visual learning robot that identifies and extracts the important parts of any web page"

Supported APIs:

See Diffbot documentation

  • Article API: The Article API is used to extract clean article text from news article web pages.
  • Frontpage API: The Frontpage API takes in a multifaceted “homepage” and returns individual page elements.
  • Product API: The Product API analyzes a shopping or e-commerce product page and returns information on the product.


It works both in the browser and in the console.
Browser usage:

import 'package:diffbot/diffbot_browser.dart';
main() {
  var client = new Client('YOUR_TOKEN');
  client.getArticle('http://www.aweso.me/blog/post').then((Article article) {
    // you can use article's title, date, author, metadata, etc:
    // article.title
    // article.date

Console usage:

import 'package:diffbot/diffbot_console.dart';
main() {
  var client = new Client('YOUR_TOKEN');
  client.getFrontpage('http://yourfavorite.newspaper.com').then((Frontpage fp) {
    // see documentation


Build Status


See example/ directory.


Official Diffbot APIs documentation can be found at http://diffbot.com/products/automatic/

Dart documentation can be found at http://claudiodangelis.com/docs/diffbot.


BSD 2-Clause License. See LICENSE.

Reporting bugs

You can file bugs at diffbot/issues.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  diffbot: "^0.1.1"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:diffbot/diffbot_browser.dart';

      import 'package:diffbot/diffbot_console.dart';
Version Uploaded Documentation Archive
0.1.1 Nov 13, 2013 Go to the documentation of diffbot 0.1.1 Download diffbot 0.1.1 archive
0.1.0 Oct 14, 2013 Go to the documentation of diffbot 0.1.0 Download diffbot 0.1.0 archive


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
80 / 100
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: web

Platform components identified in package: html, io.


  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Documentation URL does not exists.

    We were unable to access http://claudiodangelis.com/docs/diffbot at the time of the analysis.

  • Package is too old.

    The package was released more than two years ago.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 errors 15 hints.

    Strong-mode analysis of lib/src/browser/client.dart failed with the following error:

    line: 21 col: 16
    The setter 'handler' isn't defined for the class 'Proxy<Proxy>'.

    Run dartfmt to format lib/diffbot_browser.dart.

    Similar analysis of the following files failed:

    • lib/diffbot_console.dart (hint)
    • lib/src/console/client.dart (hint)
    • lib/src/shared/article.dart (hint)
    • lib/src/shared/base_client.dart (hint)
    • lib/src/shared/errors.dart (hint)
    • lib/src/shared/frontpage.dart (hint)
    • lib/src/shared/product.dart (hint)
    • lib/src/shared/utils.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use diffbot.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=0.8.10+6 <2.0.0
js >=0.2.0 <0.3.0 0.2.2 0.6.1
Transitive dependencies
browser 0.10.0+3
Dev dependencies
unittest >=0.9.0 <0.10.0