Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON LD on Youtube videos needs improving #1

Open
mrmartineau opened this issue Oct 3, 2023 · 0 comments
Open

JSON LD on Youtube videos needs improving #1

mrmartineau opened this issue Oct 3, 2023 · 0 comments

Comments

@mrmartineau
Copy link
Owner

The 1st two JSON LD selectors have been specifically added to get more accurate data for YouTube videos, but it seems HTMLRewriter is not able to parse them. I think this might be due to the JSON LD script being within a web component..

The selectors are:

[
  {
    selector:
      '#content #microformat script[type="application/ld+json"]',
  },
  {
    selector:
      'ytd-player-microformat-renderer script[type="application/ld+json"]',
  },
  {
    selector: 'script[type="application/ld+json"]',
  },
]

Are there better set of selectors that can be used to get this information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant