赞
踩
最近比较流行的一种伪原创方式,火车头采集器双标题插件,功能主要如下:
1、原文标题伪原创,实现标题相关双标题;
2、文章内容伪原创,提高文章的原创度;
3、文章内容摘要提取。
废话就不多说,插件是用php开发的,需要的小伙伴可以试试,直接给大家线上源码:
- <?php
-
-
- set_time_limit(270);
- error_reporting(E_ERROR | E_WARNING | E_PARSE);
-
- define('TITLE_SEPAR', 'xxx**xxx');
- define('TITLE_SEPAR2', '262661');
-
- $url = 'http://api.gozuowen.com/api.php?json=0&v=1&key=abc111';
- $summary_api = 'http://api-20.xiaofamao.com/ai_summary/jason.php';
-
- $content_tag_name = '内容';
-
- $headdd = '';
- $taill = '';
-
-
- switch($LabelArray['PageType'])
- {
- case 'List'://处理列表页,只能处理html
- break;
- case 'Pages'://处理多页,只能处理html
- break;
- case 'Content'://处理默认页,只能处理html
- break;
- case 'Save'://只有保存时是可以处理标签值的
- // 保存原文
-
- try {
- /**********************************************************************/
- // 这一步用来获取伪原创文章
- /**********************************************************************/
- $title = $LabelArray['标题'];
- $title = '标题:'.$title;
-
- $content = $LabelArray[$content_tag_name];
- #$content = str_replace('2020/', '2020_', $content);
-
- $article_src = compose_article($title, $content);
- $article_src_b = $article_src;
-
- $article_new = get_wyc_article($article_src);
-
- $summary = curl_request($summary_api, array('old_title'=>$LabelArray['标题'], 'wenzhang'=>$LabelArray[$content_tag_name]));
- $title_wyc = trim($article_new[0]);
- $content_wyc = trim($article_new[1]);
-
- $content_wyc = fix_newline($content_wyc);
- $content_wyc = str_replace('标签:', '标签:', $content_wyc);
- $LabelArray[$content_tag_name] = $headdd. $content_wyc. $taill;
-
- $LabelArray['摘要'] = strip_tags($summary);
- $title_wyc = str_replace(array('。',',','%'), array(' ',' ',' '), $title_wyc);
- $LabelArray['标题'] = $title_wyc;
- }
- catch (Exception $e) {
- $LabelArray['标题'] .= $e->getMessage();
- $LabelArray[$content_tag_name] .= $e->getMessage();
- }
- break;
- default:
- //$LabelArray[$content_tag_name]=curl_request($url, array('wenzhang'=>$LabelArray[$content_tag_name] ));
- }
-
- echo serialize($LabelArray);
-
-
-
- function compose_article($title, $content) {
- $separator = compose_separator();
- return $title.$separ
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。