Closed nathangathright closed 3 years ago
Hey, that has a lot of sense.
I think it could be added as last chance to detect iframe here:
It could be added as a way at https://github.com/microlinkhq/metascraper/blob/master/packages/metascraper-iframe/src/index.js#L16
Can you make a PR? 🙂
I took a stab at it, but I'm very out of my depth 😅
No problem I can review and help you 🙂
Released at v5.25.3
🎉
Deployed at Microlink API as well:
https://api.microlink.io/?url=https%3A%2F%2Fshare.transistor.fm%2Fs%2Fddad295d&iframe
Prerequisites
package.json
.Subject of the issue
Twitter's Player Card spec defines the content of the
twitter:player
tag as "HTTPS URL to iFrame player." If a website doesn't support oEmbed, it would be ideal if metascraper-iframe returned a useful response powered by thetwitter:player
,twitter:player:width
, andtwitter:player:height
tags.Steps to reproduce
RunKit Sample Code
Expected behaviour
Actual behaviour