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

YouTube transcription variable #274

Open
Dexmach5723 opened this issue Dec 20, 2024 · 3 comments
Open

YouTube transcription variable #274

Dexmach5723 opened this issue Dec 20, 2024 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Dexmach5723
Copy link

Describe the solution you'd like
It would be nice if it could have a transcription variable so that it can be added to a template that pulls from youtube. There is a mini clipper that is in the chrome store, but this really should be a feature of the clipper.

@Dexmach5723 Dexmach5723 added the enhancement New feature or request label Dec 20, 2024
@kepano kepano changed the title Transcription variable YouTube transcription variable Dec 20, 2024
@kepano
Copy link
Collaborator

kepano commented Dec 20, 2024

You can do this using selector variables. Note that the YouTube transcript must be visible for Web Clipper to capture it.

{{selectorHtml:ytd-engagement-panel-section-list-renderer[visibility$=\"EXPANDED\"] #segments-container|strip_tags:"h2,ytd-transcript-segment-renderer"|replace:"ytd-transcript-segment-renderer":"li"|markdown}}

See this thread on Obsidian Discord for more.

@Dexmach5723
Copy link
Author

Dexmach5723 commented Dec 20, 2024

This did not work. I tested this code as well as the Easy Web Clipper extension and it was able were able to pull the transcription where the code above could not.

I see you point of expanding the transcription and having it visible, then running the web clipper; this does work. This is a great solution, I am just wondering why the other plugin does not require this. It also breaks the timestamps up and makes the timestamps actual links. It is just executed a little better and such a valuable feature.

https://chromewebstore.google.com/detail/Obsidian%20Easy%20Clipper/iikfbnkefnpepiabdkkhlganjigeekkl

@kepano
Copy link
Collaborator

kepano commented Dec 20, 2024

Obsidian Web Clipper provides templating options that are designed to be as flexible as possible and accommodate any website on the internet.

The extension you linked to is specifically designed to extract YouTube transcripts.

Site-specific rules can also be added to Web Clipper. I would definitely welcome help adding this feature!

@kepano kepano added the help wanted Extra attention is needed label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants