Last active
October 19, 2018 07:48
-
-
Save yazdipour/d898abca3398d3d3a89d164b5e84e522 to your computer and use it in GitHub Desktop.
Python script crawl and Get MS-Build download links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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