Skip to content

Commit

Permalink
feat: add support for videos in Youtube playlist (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
SubodhDahal authored May 1, 2024
1 parent f278d7d commit 47161e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/scrappers/youtube.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
url:
- https://www.youtube.com/feed/history
- https://www.youtube.com/results
listElementsQuery: 'ytd-video-renderer'
- https://www.youtube.com/playlist
listElementsQuery: 'ytd-video-renderer, ytd-playlist-video-renderer, ytd-rich-item-renderer'
elementParser:
- title: Video thumbnail
query: "img"
Expand All @@ -12,15 +13,15 @@ elementParser:
type: text

- title: Video views
query: "#metadata-line > span"
query: "#metadata-line > span, yt-formatted-string > span"
type: text

- title: Video description
query: ".metadata-snippet-text"
type: text

- title: Video duration
query: "#time-status"
query: "ytd-thumbnail-overlay-time-status-renderer > div"
type: text

- title: Video URL
Expand Down

0 comments on commit 47161e8

Please sign in to comment.