How to scrape youtube id from meta data?

I couldn't find a solution for scraping youtube id from meta content with no name. It's very long content which including youtube link.

Url: Teoman – Vur Sen Beni Lyrics | Genius Lyrics

Sitemap: (Youtube part)
{"_id":"teo","startUrl":["https://genius.com/artists/Teoman"],"selectors":[{"id":"albüm","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.u-quarter_top_margin","multiple":false,"delay":2000,"clickElementSelector":"div.u-quarter_top_margin","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"albumler","type":"SelectorLink","parentSelectors":["_root"],"selector":"a.mini_card--small","multiple":true,"delay":0},{"id":"Artist","type":"SelectorText","parentSelectors":["albumler"],"selector":"a.header_with_cover_art-primary_info-primary_artist","multiple":false,"regex":"","delay":0},{"id":"Album","type":"SelectorText","parentSelectors":["albumler"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"Release","type":"SelectorText","parentSelectors":["albumler"],"selector":"metadata div","multiple":false,"regex":"","delay":0},{"id":"AlbumCover","type":"SelectorImage","parentSelectors":["albumler"],"selector":".header_with_cover_art-cover_art img","multiple":false,"delay":0},{"id":"Songs","type":"SelectorLink","parentSelectors":["albumler"],"selector":"a.u-display_block","multiple":true,"delay":0},{"id":"Lyrics","type":"SelectorHTML","parentSelectors":["Songs"],"selector":"section p","multiple":false,"regex":"","delay":0},{"id":"Youtube","type":"SelectorHTML","parentSelectors":["Songs"],"selector":"div.videos","multiple":false,"regex":"","delay":0}]}

Any help please? Still trying to figure out

Try

Type: HTML
Selector: html
Regex: https?\://www\.youtube\.com/watch\?v=[^&]+

You must copy/type in the regex exactly. Every single character is important, and do not leave a space before or after.

1 Like