otiai10 / opengraph

Open Graph Parser for Go
https://pkg.go.dev/github.com/otiai10/opengraph
MIT License
67 stars 13 forks source link

Retrieval of Twitter card information #31

Open jez321 opened 3 years ago

jez321 commented 3 years ago

Hi, I was just wondering if it's possible to retrieve Twitter card information such as in the following example html, or if it's a feature you would consider adding (or allow me to submit a PR for)? Thanks

https://github.com/otiai10/opengraph/blob/ac0f3d54ec90311e08962900de51fab33a3a6799/test/html/02_haisai.html#L15-L16

otiai10 commented 2 years ago

I tried to secure time to think about the best architecture to implement your point, but couldn't have much time. If you are still interested in this, could you send a PR and let's discuss on it. @jez321 No pressure.

otiai10 commented 2 years ago
og.Extra["twitter"] = YourTwitterImplementation{}
otiai10 commented 1 year ago
image