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

python: fetch full youtube playlist #15

Open
azimut opened this issue Mar 25, 2024 · 2 comments
Open

python: fetch full youtube playlist #15

azimut opened this issue Mar 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@azimut
Copy link
Owner

azimut commented Mar 25, 2024

  • use yt-dlp
  • tell go to stop fetching youtube links
  • fetch description
    • add a flag to disable (some channels have trash descriptions)
    • might be wait for this one until I have go: better fetch #14
@azimut azimut added the enhancement New feature or request label Mar 26, 2024
@azimut
Copy link
Owner Author

azimut commented Apr 8, 2024

https://tyrrrz.me/blog/reverse-engineering-youtube-revisited
https://github.com/videolan/vlc/blob/master/share/ytdl-extract.py

yt_dlp.YoutubeDL(
            {
                'extract_flat': 'in_playlist',
                'youtube_include_dash_manifest': False
            })

outputs: entries/videos do NOT have date

{'id': 'PLFs19LVskfNxGjRZu_d_i93aSDraOSiJa',
 'title': 'Bridges Podcast',
 'description': 'Destiny and NotSoErudite talk to guests on the bridges podcast',
 'tags': [],
 'thumbnails': [
 'modified_date': '20240407',
 'view_count': 8303,
 'playlist_count': 3,
 'channel': 'Destiny',
 'channel_id': 'UC554eY5jNUfDq3yDOJYirOQ',
 'uploader_id': '@destiny',
 'uploader': 'Destiny',
 'channel_url': 'https://www.youtube.com/channel/UC554eY5jNUfDq3yDOJYirOQ',
 'uploader_url': 'https://www.youtube.com/@destiny',
 '_type': 'playlist',
'entries': [
{'_type': 'url',
 'ie_key': 'Youtube',
 'id': '7HNq8i3dvoc',
 'url': 'https://www.youtube.com/watch?v=7HNq8i3dvoc',
 'title': 'Confronting Alex Jones On Sandy Hook | Bridges #3 Krassenstein Brothers',
 'description': None,
 'duration': 2305,
 'channel_id': 'UC554eY5jNUfDq3yDOJYirOQ',
 'channel': 'Destiny',
 'channel_url': 'https://www.youtube.com/channel/UC554eY5jNUfDq3yDOJYirOQ',
 'uploader': 'Destiny',
 'uploader_id': '@destiny',
 'uploader_url': 'https://www.youtube.com/@destiny',
 'thumbnails': [
 'release_timestamp': None,
 'availability': None,
 'view_count': 117000,
 'live_status': None,
 'channel_is_verified': None,
 '__x_forwarded_for_ip': None}

@azimut
Copy link
Owner Author

azimut commented Apr 13, 2024

Given the changes the feeds.db changes often get. I think it might be worth having a separate database for youtube/python content. That content should never change. I should put everything there.

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

No branches or pull requests

1 participant