Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/usr/bin/python3.4
- __author__ = 'Mertcan Gokgoz'
- from bs4 import BeautifulSoup
- from urllib.request import urlopen
- pasteURL = input("Youtube Linkini Giriniz: ")
- data = urlopen(pasteURL).read()
- youtubeUrl = BeautifulSoup(data)
- for links in youtubeUrl.find_all('link',itemprop="thumbnailUrl"):
- print ("Thumbnail :" + " " + links.get('href'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement