|
2.3很简单,2.5很黄很暴力,花了十个小时,包括采集目标站,附件本地,转换原目标站的内容格式之类的,不过WP默认的分隔标签<!--more-->会被火车头过滤,采集完成后得用SQL搞定:
-
- UPDATE wp_posts set post_content=REPLACE(post_content,' ','');
- UPDATE wp_posts set post_content=REPLACE(post_content,'\r','');
- UPDATE wp_posts set post_content=REPLACE(post_content,'\n','');
- UPDATE wp_posts set post_content=REPLACE(post_content,'----more--------end----','');
- UPDATE wp_posts set post_content=REPLACE(post_content,'----end----','');
- UPDATE wp_posts set post_content=REPLACE(post_content,'----more----','<!--more-->');
复制代码 |
|