anandwana001 / ogtagparser Goto Github PK
View Code? Open in Web Editor NEW๐ฒ Kotlin library to parse open graph tags
Home Page: http://anandwana001.github.io/
License: Apache License 2.0
๐ฒ Kotlin library to parse open graph tags
Home Page: http://anandwana001.github.io/
License: Apache License 2.0
Please consider making a Pull Request if you are capable of doing so.
Description what you'd like to happen:
Need to setup testing.
Please consider making a Pull Request if you are capable of doing so.
Description what you'd like to happen:
Currently, I had implemented the CoroutineScope
to use the CoroutineContext
to access the job instance.
As per the doInBackground()
, using withContext()
with a coroutine context. Need to have the same context as above.
Make this doInBackground()
cancellable as it's a suspend function.
need to add documentation
Please consider making a Pull Request if you are capable of doing so.
Library Version:
1.0.2
Describe the Bug:
Currently, the library doesn't support showing images from non-secure URLs
Expected Behavior:
Need to check if it is a good idea to show images or is there any other way to work this out.
I want to be able to set the user agent.
I can't get Twitter OgTag now.
solution
https://qiita.com/JunkiHiroi/items/f03d4297e11ce5db172e
like this
curl 'https://twitter.com/hatakenjiro/status/1267448662839357441' -H 'User-Agent: bot
my proposal
--- a/ogtagparser/src/main/java/com/anandwana001/ogtagparser/OgTagParser.kt
+++ b/ogtagparser/src/main/java/com/anandwana001/ogtagparser/OgTagParser.kt
@@ -16,6 +16,12 @@ import kotlin.coroutines.CoroutineContext
class OgTagParser {
private var callback: LinkViewCallback? = null
+ private var userAgent: String = "Mozilla"
+
+ fun setUserAgent(userAgent: String): OgTagParser {
+ this.userAgent = userAgent
+ return this
+ }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.