Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2
- import re
- import vimeo_dl as vimeo
- from bs4 import BeautifulSoup
- # change this for your file path
- filePath = "c:\\Users\\throb\\Documents\\bijantrades_all.html"
- # open file for reading with soup
- soup = BeautifulSoup(open(filePath,mode='r', buffering=1))
- z = open(filePath,mode='r', buffering=1)
- # find all vimeo links and sit them out stdout
- for curLine in z.readlines():
- #print ('1')
- myurl = re.search('https://player.vimeo.com/video/[0-9]+', curLine)
- if myurl != None :
- print(myurl.group())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement