VRGsoftUA / Kotlin Link Parser
Link preview for android
Stars: ✭ 50
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Kotlin Link Parser
Thirtyinch
a MVP library for Android favoring a stateful Presenter
Stars: ✭ 1,052 (+2004%)
Mutual labels: rxjava2, library
Rxdownloader
- Reactive Extension Library for Android to download files
Stars: ✭ 40 (-20%)
Mutual labels: rxjava2, library
Rxmusicplayer Android
An android music player using ExoPlayer and RxJava2
Stars: ✭ 127 (+154%)
Mutual labels: rxjava2, library
Ngx.leaflet.component
angular 2+ / leaflet 1.x component collection
Stars: ✭ 46 (-8%)
Mutual labels: library
C Utils
Tiny, modular, drop-in, library of some most commonly used utility methods for C (embedded) applications. Intended to be used as a git-submodule inside your projects to kickstart development. See https://c-utils.gotomain.io for more details.
Stars: ✭ 47 (-6%)
Mutual labels: library
Speedview
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape ⚡️
Stars: ✭ 1,035 (+1970%)
Mutual labels: library
Go Tox
Go wrapper for the toxcore library - contributions welcome!
Stars: ✭ 49 (-2%)
Mutual labels: library
React Echarts V3
React.js(v16.x+) component wrap for ECharts.js(v3.x+)
Stars: ✭ 48 (-4%)
Mutual labels: library
Pannellum React
React Component for Pannellum (open source panorama viewer for the web)
Stars: ✭ 48 (-4%)
Mutual labels: library
Graphql Retrofit Converter
A Retrofit 2 Converter.Factory for GraphQL.
Stars: ✭ 46 (-8%)
Mutual labels: rxjava2
Tinystr
A small ASCII-only bounded length string representation.
Stars: ✭ 48 (-4%)
Mutual labels: library
Permissionsflow
A simple library to make it easy requesting permissions in Android using Kotlin Coroutines.
Stars: ✭ 49 (-2%)
Mutual labels: library
Libgit2
A cross-platform, linkable library implementation of Git that you can use in your application.
Stars: ✭ 8,208 (+16316%)
Mutual labels: library
Kotlin Link Parser
Here is our implementation of Link Preview written in Kotlin with RxKotlin2
Usage
Include the library as local library project.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.VRGsoftUA:Kotlin-Link-Parser:1.0.0'
}
Initialize LinkCrawler:
val crawler = LinkCrawler()
If you need to do something before parsing url, you can use the preload callback:
crawler.onPreload {
// Do something
}
To start parsing you need to use crawler.parseUrl and pass desired url, it returns Flowable<Result>
:
val subscription =
crawler.parseUrl("https://github.com").subscribe { t ->
mBinding.content = t.result
}
subscription.dispose() // avoid leaks
Result object contains ParseContent field which contains all parsed data of passed url, such as title, description etc.
Java version
License
Copyright 2018 VRG Soft
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].