https://github.com/pocmo/featurizer
An Android library for extracting features (title, icon, image, ...) from a website / URL.
https://github.com/pocmo/featurizer
Last synced: 4 months ago
JSON representation
An Android library for extracting features (title, icon, image, ...) from a website / URL.
- Host: GitHub
- URL: https://github.com/pocmo/featurizer
- Owner: pocmo
- License: mpl-2.0
- Created: 2016-06-20T18:00:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-28T13:04:13.000Z (almost 10 years ago)
- Last Synced: 2025-02-12T06:38:22.797Z (over 1 year ago)
- Language: HTML
- Size: 266 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/pocmo/Featurizer)
# Featurizer
An Android library for extracting features (title, icon, image, ...) from a website / URL.
Download
--------
Grab via Maven:
```xml
com.androidzeitgeist.featurizer
featurizer
1.1.0
```
or Gradle:
```groovy
compile 'com.androidzeitgeist.featurizer:featurizer:1.1.0'
```
Usage
-----
```java
final Featurizer featurizer = new Featurizer();
final WebsiteFeatures features = featurizer.featurize("https://www.youtube.com/watch?v=tRlmP6xWdw0");
Log.d("Featurizer", "Title: " + features.getTitle());
// Welcome to Firefox - YouTube
Log.d("Featurizer", "Description: " + features.getDescription());
// The things you do online matter. When you use Firefox, you have the power to keep those
// things personal: http://mzl.la/1Q1WZM1. Welcome to personal freedom o...
Log.d("Featurizer", "URL: " + features.getUrl());
// https://www.youtube.com/watch?v=tRlmP6xWdw0
Log.d("Featurizer", "Icon: " + features.getIconUrl());
// https://s.ytimg.com/yts/img/favicon_32-vfl8NGn4k.png
Log.d("Featurizer", "Image: " + features.getImageUrl());
// https://i.ytimg.com/vi/tRlmP6xWdw0/maxresdefault.jpg
Log.d("Featurizer", "Type: " + features.getType());
// video
Log.d("Featurizer", "Color: " + features.getColor());
// -1695465 (#FFE62117)
```
License
-------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.