scraping with vim

This commit is contained in:
gmarik 2010-11-01 01:12:32 -05:00
parent c360d43c07
commit 807d6a1a68

View File

@ -0,0 +1,4 @@
let scripts=tempname() | exec '!curl http://vim-scripts.org/scripts.html >'.scripts
exec 'e '.scripts
%s/<tr>\_.\s\+<td>\(\d\+\)<\/td>\_.\s\+<td>\([^<]\+\)<\/td>\_\s\+<td><a\s\+href="\([^"]\+\)">\([^<\/]\+\)<\/a><\/td>\_\s\+<td>\(.*\)<\/td>/Script:\1 \2 \4 \3 \5/g