Settings

Theme

I Just Got Rick Rolled by Chat GPT

8 points by cjoverbay 3 years ago · 1 comment · 1 min read


My Prompt: Can you write some python code that gets the view count, the title, and the thumbnail from a youtube video link?

The response:

Sure, here is some example code that gets the view count, title, and thumbnail from a youtube video link using the youtube-dl library:

  import youtube_dl
  
  # Set the youtube video URL
  url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  
  # Use youtube-dl to get video information
  with youtube_dl.YoutubeDL() as ydl:
      video_info = ydl.extract_info(url, download=False)
  
  # Print the video view count, title, and thumbnail
  print(video_info['view_count'])
  print(video_info['title'])
  print(video_info['thumbnail'])
Note that you need to have the youtube-dl library installed to run this code. You can install it using pip install youtube-dl.
yashbhatnagar 3 years ago

I guess there must have a been a rickroll in the training data :D. On a more serious note though, this does prove that ChatGTP is still in its early stages and lot more work is required to truly build a fully communicating bot. Imagine having this in schools. There have been incidents where the bot responded with inaccurate answers...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection