In development microformats2 parser for Java
HTML Java
Latest commit 86752d8 Mar 13, 2016 @notenoughneon notenoughneon improve nested microformat value parsing
fixes HEntryTests.ImpliedValueNested and 5 others
Permalink
Failed to load latest commit information.
src
.gitignore add .idea to gitignore Mar 9, 2016
LICENSE Initial commit Jun 3, 2015
README.md prepare for first OSSRH release Jul 5, 2015
pom.xml add sonatype repository to pom.xml Mar 4, 2016

README.md

mf2j

In-development Java parser for microformats2. All the hard work is done by Jsoup.

Supports:

  • basic property types
  • implied properties
  • rel-urls hash

TODO:

  • value-class-pattern
  • backwards compatibility

Live version: https://mf2j.herokuapp.com/?url=http://kylewm.com

Requirements: Java 1.5+

Installation

<dependency>
  <groupId>com.kylewm</group>
  <artifactId>mf2j</artifactId>
  <version>0.0.4</artifact>
</dependency>

Usage

import com.kylewm.mf2j.Mf2Parser;
...

Mf2Parser parser = new Mf2Parser()
    .setIncludeAlternates(true)
    .setIncludeRelUrls(true);
Map<String,Object> parsed = parser.parse(new URI("https://kylewm.com"));