- 抓取页面内容到一个文件中
curl -o home.html http://jingwentian.com
2.用-O(大写的),后面的url要具体到某个文件,不然抓不下来。我们还可以用正则来抓取东西
curl -O http://jingwentian.com/logo.png
curl -O http://jingwentian.com/uploads/2010/[0-9][0-9]/demo.jpg
| #!/usr/bin/ruby | |
| # Using GPL v2 | |
| # Author:: DongYuwei(mailto:newdongyuwei@gmail.com) | |
| # 更新部分内容应对2010年7月25日飞信升级 | |
| require 'uri' | |
| require 'net/http' | |
| require 'net/https' | |
| require "socket" | |
| require 'rexml/document' |
| fun! EvalVimScriptRegion(s,e) | |
| let lines = getline(a:s,a:e) | |
| let file = tempname() | |
| cal writefile(lines,file) | |
| redir @e | |
| silent exec ':source '.file | |
| cal delete(file) | |
| redraw | |
| redir END | |
| echo "Region evaluated." |
curl -o home.html http://jingwentian.com
2.用-O(大写的),后面的url要具体到某个文件,不然抓不下来。我们还可以用正则来抓取东西
curl -O http://jingwentian.com/logo.png
curl -O http://jingwentian.com/uploads/2010/[0-9][0-9]/demo.jpg
| <?php | |
| /** | |
| * ICS.php | |
| * ======= | |
| * Use this class to create an .ics file. | |
| * | |
| * Usage | |
| * ----- | |
| * Basic usage - generate ics file contents (see below for available properties): |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html