https://github.com/auties00/linkpreview
Generate a preview for a link or for a text containing links
https://github.com/auties00/linkpreview
extract java link link-preview preview
Last synced: about 1 year ago
JSON representation
Generate a preview for a link or for a text containing links
- Host: GitHub
- URL: https://github.com/auties00/linkpreview
- Owner: Auties00
- Created: 2022-07-04T23:58:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T11:43:25.000Z (over 2 years ago)
- Last Synced: 2025-04-15T00:53:54.958Z (about 1 year ago)
- Topics: extract, java, link, link-preview, preview
- Language: Java
- Homepage:
- Size: 35.2 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Link Preview Java
### What is link preview
This library generates a preview for a link or for a text containing any number of links.
Its functionality is aligned with [link-preview-js](https://github.com/ospfranco/link-preview-js)
as I was looking for an alternative to this library for Java but couldn't find any.
### How to install
#### Maven
```xml
com.github.auties00
link-preview
2.4
```
#### Gradle
1. Groovy DSL
```groovy
implementation 'com.github.auties00:link-preview:2.4'
```
2. Kotlin DSL
```kotlin
implementation("com.github.auties00:link-preview:2.4")
```
### How to use
1. Text
```java
LinkPreview.createPreviews("This is a string containing links: google.com");
```
2. URI
```java
LinkPreview.createPreviews(URI.create("https://google.com/"));
```