Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anandwana001/ogtagparser
📲 Kotlin library to parse open graph tags
https://github.com/anandwana001/ogtagparser
android jsoup kotlin library networking opengraph-tags
Last synced: 14 days ago
JSON representation
📲 Kotlin library to parse open graph tags
- Host: GitHub
- URL: https://github.com/anandwana001/ogtagparser
- Owner: anandwana001
- License: apache-2.0
- Created: 2019-01-25T06:24:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-08T12:59:28.000Z (almost 3 years ago)
- Last Synced: 2023-03-01T14:34:09.979Z (over 1 year ago)
- Topics: android, jsoup, kotlin, library, networking, opengraph-tags
- Language: Kotlin
- Homepage: http://anandwana001.github.io/
- Size: 1.55 MB
- Stars: 20
- Watchers: 1
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ogTagParser
Kotlin library to parse open graph meta tags (ogTags) from given URL.[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
## Getting Started
NOTE: This library is not hosted anywhere as of now.
Pass the URL and get the Data
```kotlin
val content = OgTagParser().getContents(URL_TO_PARSE)
content?.let {
val title = content.ogTitle,
val description = content.ogDescription,
val url = content.ogUrl,
val site_name = content.ogSiteName,
val type = content.ogType,
val image = content.image
)
```## If this library helps you in anyway, show your love :heart: by putting a :star: on this project :v:
## 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](CONTRIBUTING.md).## License
[License](LICENSE.md)