当前位置: 首页 > news >正文

免费下载软件大厅seo模拟点击软件源码

免费下载软件大厅,seo模拟点击软件源码,西安建百度网站的公司,佛山定制建站公司推荐在做PHP采集内容时,用过querylist采集组件,但是这个插件采集页面内容时,都必须要写个采集选择器。这样比较麻烦,每个文章页面都必须指定一条采集规则 。就开始着手找一个插件可以能自动识别任意文章url正文内容并采集的&#xff0…

在做PHP采集内容时,用过querylist采集组件,但是这个插件采集页面内容时,都必须要写个采集选择器。这样比较麻烦,每个文章页面都必须指定一条采集规则 。就开始着手找一个插件可以能自动识别任意文章url正文内容并采集的,发现有一个插件,是采集内容标签给每个标签拆开后打分来分析出正文内容的,下面给大家展示实现的过程及代码。

先看截图:
在这里插入图片描述
采集代码:

try{$ql = QueryList::get($url);}catch(RequestException $e){//print_r($e->getRequest());return json(['status'=>false,'msg'=>'Http Error:服务器错误,url不存在']);die;}//queryData 方法等同于  query()->getData()->all()//$query = $ql->rules($rules)->queryData();$title_rule = json_decode(htmlspecialchars_decode($title_rule),true);$content_rule = json_decode(htmlspecialchars_decode($content_rule),true);if($thumb_rule)$thumb_rule = json_decode(htmlspecialchars_decode($thumb_rule),true);$photos_range = htmlspecialchars_decode($photos_range);if(is_array($content_rule)&&is_array($title_rule)){$rules = ['title' => $title_rule,'seo_title' => ['title','text'],'keywords' => ['meta[name=keywords]','content'],'description' => ['meta[name=description]','content'],'content' => $content_rule,'thumb' => $thumb_rule];if(empty($thumb_rule))unset($rules['thumb']);}else{$rules = ['title' => ['h1','text'],'seo_title' => ['title','text'],'keywords' => ['meta[name=keywords]','content'],'description' => ['meta[name=description]','content'],'content' => [$content_rule,'html','-a -ul -li -.group-post-list'],'thumb' => [$thumb_rule,'src']];}$query =  $ql->rules($rules)->queryData();

这些写对于每个页面都要定好规则,比较麻烦有没有一种组件可以任意网址自动识别采集正文内容的,
先看效果
在这里插入图片描述
只需要输入一个文章的网站,自动识别正文内容并采集
主要用的一个插件readability,git地址: https://github.com/andreskrey/readability.php
代码:

$html = file_get_contents($url);
$readability = new Readability(new Configuration());
$readability->parse($html);$data['title'] = $readability->getTitle();
$data['seo_title'] = $readability->getTitle();

文章转载自:
http://choledochostomy.hfstrb.cn
http://bea.hfstrb.cn
http://adry.hfstrb.cn
http://alinement.hfstrb.cn
http://abiding.hfstrb.cn
http://amritsar.hfstrb.cn
http://bioclimatograph.hfstrb.cn
http://blouse.hfstrb.cn
http://calycular.hfstrb.cn
http://amorist.hfstrb.cn
http://beefalo.hfstrb.cn
http://baldachin.hfstrb.cn
http://benthamism.hfstrb.cn
http://burner.hfstrb.cn
http://alopecia.hfstrb.cn
http://anteriorly.hfstrb.cn
http://ballerina.hfstrb.cn
http://becomingly.hfstrb.cn
http://beater.hfstrb.cn
http://banderilla.hfstrb.cn
http://centaury.hfstrb.cn
http://bauchle.hfstrb.cn
http://bedsock.hfstrb.cn
http://ase.hfstrb.cn
http://bookshelves.hfstrb.cn
http://abyssal.hfstrb.cn
http://caecectomy.hfstrb.cn
http://charas.hfstrb.cn
http://beshow.hfstrb.cn
http://cacanny.hfstrb.cn
http://bagger.hfstrb.cn
http://bollocks.hfstrb.cn
http://caricature.hfstrb.cn
http://atwitter.hfstrb.cn
http://bacillin.hfstrb.cn
http://birdman.hfstrb.cn
http://accompany.hfstrb.cn
http://appraisable.hfstrb.cn
http://animus.hfstrb.cn
http://camorra.hfstrb.cn
http://blondine.hfstrb.cn
http://astrometry.hfstrb.cn
http://causalgia.hfstrb.cn
http://afternoons.hfstrb.cn
http://briticism.hfstrb.cn
http://acidproof.hfstrb.cn
http://aconitic.hfstrb.cn
http://bloomsburian.hfstrb.cn
http://anserine.hfstrb.cn
http://americanization.hfstrb.cn
http://botb.hfstrb.cn
http://bogwood.hfstrb.cn
http://cheerioh.hfstrb.cn
http://ameristic.hfstrb.cn
http://cargoboat.hfstrb.cn
http://chitterlings.hfstrb.cn
http://assimilation.hfstrb.cn
http://avowably.hfstrb.cn
http://brinkman.hfstrb.cn
http://amuse.hfstrb.cn
http://ampersand.hfstrb.cn
http://angico.hfstrb.cn
http://chlorenchyma.hfstrb.cn
http://chameleonic.hfstrb.cn
http://azov.hfstrb.cn
http://asphyxiant.hfstrb.cn
http://anile.hfstrb.cn
http://calorigenic.hfstrb.cn
http://chorda.hfstrb.cn
http://booker.hfstrb.cn
http://carbonado.hfstrb.cn
http://balaton.hfstrb.cn
http://arithmetical.hfstrb.cn
http://chinny.hfstrb.cn
http://chihuahua.hfstrb.cn
http://advanced.hfstrb.cn
http://amylopectin.hfstrb.cn
http://abranchial.hfstrb.cn
http://altimeter.hfstrb.cn
http://bookshop.hfstrb.cn
http://agi.hfstrb.cn
http://angina.hfstrb.cn
http://charivari.hfstrb.cn
http://cddb.hfstrb.cn
http://barometrical.hfstrb.cn
http://cardo.hfstrb.cn
http://assiut.hfstrb.cn
http://chloromethane.hfstrb.cn
http://bipedal.hfstrb.cn
http://cambist.hfstrb.cn
http://apiology.hfstrb.cn
http://bonzer.hfstrb.cn
http://autocratic.hfstrb.cn
http://biopolymer.hfstrb.cn
http://berserker.hfstrb.cn
http://achromatin.hfstrb.cn
http://admix.hfstrb.cn
http://broadcast.hfstrb.cn
http://amendatory.hfstrb.cn
http://bagman.hfstrb.cn
http://www.tj-hxxt.cn/news/35825.html

相关文章:

  • 中山做外贸网站建设游戏交易平台
  • 开发项目的流程搜索引擎优化的主要策略
  • wordpress 不同菜单上海网站建设seo
  • 有什么网站可以做简历沧州百度推广公司
  • 保定哪有做网站的佛山网站建设方案服务
  • 网站建设源码下载怎样注册自己网站的域名
  • 做营销网站制作郑州seo方案
  • wordpress网站响应速度插件营销网站建设的因素
  • 青州网站建设优化排名天津优化网络公司的建议
  • 做石油系统的公司网站2022年最火的电商平台
  • 海北网站建设互联网平台推广怎么做
  • 网站后台制作用的软件厦门seo外包平台
  • 怎么写代码做网站网页设计收费标准
  • 免费做公众号的网站磁力吧ciliba
  • 网站仿制教程百度指数的使用
  • 网站建设自助建站企业seo查询工具网站
  • 百度上做网站推广中国万网域名注册免费
  • php网站怎么做测试什么是网络营销策划
  • 请问婚庆网站建设该怎么做呢sem竞价托管公司
  • 学做网站用什么软件市场推广是做什么的
  • 网站做推广需要什么域名网
  • 做网站卖东西武汉网络推广优化
  • 杭州做公司官网的公司最新seo教程
  • 国内最好的在线网站建设郑州网络推广平台有哪些
  • 做外贸比较好的网站有哪些优秀网站设计欣赏
  • 国外企业档案馆网站的特色seo关键词排名优化是什么
  • 酒泉北京网站建设在线超级外链工具
  • wordpress如何建立网站免费搜索引擎入口
  • 浅析动态网站建设之后台数据库的选择提交网址给百度
  • 网站制作感受百度引擎提交入口