Comments (2)
From #67:
<link
rel="alternate"
type="application/json+oembed"
href="http://www.youtube.com/oembed?format=json&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DccYpEv4APec"
title='Google Translate Sings: "The Sound of Silence" (Simon & Garfunkel)'
/>
Trying the HTTP URL YouTube provides yields:
$ http "http://www.youtube.com/oembed?format=json&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DccYpEv4APec"
HTTP/1.1 403 Forbidden
Cache-Control: private
Content-Encoding: gzip
Content-Length: 132
Content-Type: application/json; charset=UTF-8
Date: Wed, 06 Jan 2021 09:58:05 GMT
Server: scaffolding on HTTPServer2
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
{
"error": {
"code": 403,
"message": "SSL is required to perform this operation.",
"status": "PERMISSION_DENIED"
}
}
Upgrading to HTTPS makes it work:
$ http "https://www.youtube.com/oembed?format=json&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DccYpEv4APec"
HTTP/1.1 200 OK
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Encoding: gzip
Content-Type: application/json
Date: Wed, 06 Jan 2021 10:01:37 GMT
Server: scaffolding on HTTPServer2
Transfer-Encoding: chunked
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
{
"author_name": "Twisted Translations",
"author_url": "https://www.youtube.com/c/twistedtranslations",
"height": 113,
"html": "<iframe width=\"200\" height=\"113\" src=\"https://www.youtube.com/embed/ccYpEv4APec?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
"provider_name": "YouTube",
"provider_url": "https://www.youtube.com/",
"thumbnail_height": 360,
"thumbnail_url": "https://i.ytimg.com/vi/ccYpEv4APec/hqdefault.jpg",
"thumbnail_width": 480,
"title": "Google Translate Sings: \"The Sound of Silence\" (Simon & Garfunkel)",
"type": "video",
"version": "1.0",
"width": 200
}
🤦
from unfurl.
🎉 This issue has been resolved in version 5.2.2 🎉
The release is available on:
Your semantic-release bot 📦🚀
from unfurl.
Related Issues (20)
- og:image:alt not used HOT 3
- meta theme-color and/or a way to access the scraped HTML? HOT 1
- Seeing "Uncaught (in promise) TypeError: url_1.URL error" HOT 3
- Installation instructions HOT 2
- Missing types in dist
- Package installation HOT 3
- Favicon HOT 3
- Add semantic releases HOT 3
- Youtube: only favicon gets extracted HOT 2
- Incorrect metadata types HOT 2
- Wrong parsing of <title> HOT 6
- Issue scraping Amazon HOT 19
- Add support article type in OGP specification HOT 2
- TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters HOT 4
- Respect robots.txt HOT 1
- [Bug] Incorrect Twitter card result for Gumroad links HOT 3
- Allow passing extra headers to fetch request HOT 2
- Posibility to use axios or enhance the current implementation to work on company proxyfied networks HOT 1
- [Bug]: SoundCloud oEmbed is not returning any html content HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unfurl.