Fork developed by @Broadbear.
This a version for Java of Leonardo Cardoso's web Facebook Link Preview.
It makes a preview from an url, grabbing all information. Such as title, relevant texts and images.
The goal of this fork is to create a version of Leonardo's link preview in Java that is independent of Android plumbing, and can be plugged into server-side projects built with a Java stack.
Note - Required Libs: jsoup to parse the html code.
Simply add the repository to your build.gradle file:
repositories {
jcenter()
maven { url 'https://github.com/broadbear/maven-repo/raw/master' }
}
And you can use the artifacts like this:
dependencies {
compile 'org.jsoup:jsoup:1.8.3' // required
compile 'org.broadbear:link-preview:1.2'
// ...
}
Or download the jar (without dependencies) from:
https://github.com/broadbear/maven-repo/blob/master/org/broadbear/link-preview/1.2/link-preview-1.2.jar
TextCrawler.scrape([url string]);
If you are using this lib, let me know by contacting me at [email protected] then I can add your app to this list
Copyright 2013 Leonardo Cardoso
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.