Created
April 2, 2016 12:48
-
-
Save FGFW/bccb23e3ee14fad1b3f8c8b0f8bd0393 to your computer and use it in GitHub Desktop.
julia下载QQ.jl
This file contains hidden or 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
#=""" | |
julia下载QQ.jl | |
从http://im.qq.com/pcqq/页面中提取出QQ的下载地址,并下载. | |
2016年4月1日 19:16:15 codegay | |
"""=# | |
url=string("http://im.qq.com/pcqq/","?",time()) | |
download(url,"qq.html") | |
f=open("qq.html") | |
txt=readall(f) | |
m=matchall(r"(?P<test>http://.*?.exe)",txt) | |
fn=split(m[1],"/") | |
download(m[1],fn[end]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment