Skip to content

anandwana001/ogTagParser

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
app
 
 
art
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ogTagParser

Kotlin library to parse open graph meta tags (ogTags) from given URL.

License

Getting Started

NOTE: This library is not hosted anywhere as of now.

Pass the URL and get the Data

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.

License

License