Advertisement
throb

Vimeo link aggregator

Nov 12th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. import urllib2
  2. import re
  3. import vimeo_dl as vimeo
  4. from bs4 import BeautifulSoup
  5.  
  6. # change this for your file path
  7. filePath = "c:\\Users\\throb\\Documents\\bijantrades_all.html"
  8.  
  9. # open file for reading with soup
  10. soup = BeautifulSoup(open(filePath,mode='r', buffering=1))
  11. z = open(filePath,mode='r', buffering=1)
  12.  
  13. # find all vimeo links and sit them out stdout
  14. for curLine in z.readlines():
  15.     #print ('1')
  16.     myurl = re.search('https://player.vimeo.com/video/[0-9]+', curLine)
  17.     if myurl != None :
  18.         print(myurl.group())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement