ogTagParser
Android library to parse open graph tags (ogTags) from given URL.
Getting Started
Step 1. Add the dependency
Root Level Build.gradle file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
module level build.gradle file
dependencies {
...
implementation 'com.github.anandwana001:ogTagParser:1.0.2'
}
Step 2. Pass the URL and get the Data
OgTagParser().getContents(
URL_TO_PARSE,
object : LinkViewCallback {
override fun onAfterLoading(linkSourceContent: LinkSourceContent) {
// og:title
linkSourceContent.ogTitle
// og:description
linkSourceContent.ogDescription
// og:url
linkSourceContent.ogUrl
// og:site_name
linkSourceContent.ogSiteName
// og:type
linkSourceContent.ogType
// og:image
linkSourceContent.images
}
}
)
❤️
by putting a
⭐
on this project
✌️
If this library helps you in anyway, show your love Contribute
Love to see the contribution and build this repo a more better version. So if you have any issues, new ideas about implementations then just raise issue and we are open for Pull Requests. Improve and make it happen. See Contributing Guidelines.