aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/yaoren.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/yaoren.sh')
-rwxr-xr-xtools/yaoren.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/yaoren.sh b/tools/yaoren.sh
new file mode 100755
index 0000000..58d95df
--- /dev/null
+++ b/tools/yaoren.sh
@@ -0,0 +1,16 @@
1#!/bin/bash
2
3curl http://blog.sina.com.cn/u/1281912467 |\
4sed -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
16sed -nr "s/.*real_src =\"(.*\/\/[^/]+\/)[^/]+(\/.*)&amp.*/\1orignal\2/p" tmp > jojo