{"id":23395,"library":"casttube","title":"CastTube","description":"A Python library for interacting with the YouTube Chromecast API, providing methods to send videos to Chromecast devices. Currently at version 0.2.1, with sporadic maintenance.","status":"active","version":"0.2.1","language":"python","source_language":"en","source_url":"https://github.com/ur1katz/casttube","tags":["chromecast","youtube","api","casting"],"install":[{"cmd":"pip install casttube","lang":"bash","label":"default"}],"dependencies":[],"imports":[{"note":"Correct import for the main class.","wrong":"","symbol":"YouTubeChromecast","correct":"from casttube import YouTubeChromecast"}],"quickstart":{"code":"from casttube import YouTubeChromecast\n\nytc = YouTubeChromecast()\nytc.get_watch_key('dQw4w9WgXcQ')","lang":"python","description":"Initialize a YouTubeChromecast instance and obtain a watch key for a given video ID."},"warnings":[{"fix":"Handle exceptions such as requests.exceptions.ConnectionError or ValueError in production code.","message":"The library requires a network connection to Google's YouTube APIs and may break if YouTube changes their internal endpoints.","severity":"gotcha","affected_versions":"all"},{"fix":"Evaluate if this library meets your needs or switch to actively maintained alternatives.","message":"The project has not seen updates since 2020; consider alternatives like pytube or yt-dlp for more reliable YouTube interaction.","severity":"deprecated","affected_versions":"0.2.0, 0.2.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install casttube` and use `from casttube import YouTubeChromecast`.","cause":"Incorrect import statement or missing installation.","error":"ImportError: cannot import name 'YouTubeChromecast' from 'casttube'"},{"fix":"Check internet connection, ensure YouTube is accessible, and consider rotating user-agent or IP if blocked.","cause":"Network connectivity issues or YouTube blocking requests.","error":"requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.youtube.com', port=443): Max retries exceeded"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}