Skip to content

Instantly share code, notes, and snippets.

@yazdipour
Last active October 19, 2018 07:48
Show Gist options
  • Save yazdipour/d898abca3398d3d3a89d164b5e84e522 to your computer and use it in GitHub Desktop.
Save yazdipour/d898abca3398d3d3a89d164b5e84e522 to your computer and use it in GitHub Desktop.
Python script crawl and Get MS-Build download links
# Download this file and put it beside this script file:
# https://channel9.msdn.com/Events/Build/2017/rss
import re
with open('rss.txt', 'r') as myfile:
data=myfile.read().replace('\n', '')
txt='';ret = re.findall(r"url=\"(\S+?)\.mp4\"",data)
for l in ret:
if '_mid' in l:
txt+=l+'.mp4\n'
f=open('link.txt', 'w')
f.writelines(txt)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment