diff options
Diffstat (limited to 'scripts/yaoren.sh')
-rwxr-xr-x | scripts/yaoren.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/yaoren.sh b/scripts/yaoren.sh new file mode 100755 index 0000000..58d95df --- /dev/null +++ b/scripts/yaoren.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | curl http://blog.sina.com.cn/u/1281912467 |\ | ||
4 | sed -nr "/第二列start/{ | ||
5 | |||
6 | }" | ||
7 | # <div class="SG_connBody"> | ||
8 | # <div class="bloglist"> | ||
9 | # <div class="blog_title_h"> | ||
10 | # <span class="img1"></span> | ||
11 | # <div id="t_10001_4c686e930102z2ft" class="blog_title"> | ||
12 | # <a href="http://blog.sina.com.cn/s/blog_4c686e930102z2ft.html" target="_blank">咬人画的-秋之菜饼</a> | ||
13 | |||
14 | # | ||
15 | |||
16 | sed -nr "s/.*real_src =\"(.*\/\/[^/]+\/)[^/]+(\/.*)&.*/\1orignal\2/p" tmp > jojo | ||