Changeset 2238815
- Timestamp:
- 02/05/2020 06:42:53 AM (6 years ago)
- Location:
- beepress/trunk
- Files:
-
- 4 edited
-
beebox/includes/Endpoint/Crawler.php (modified) (1 diff)
-
beebox/includes/Utils/CrawlerCore.php (modified) (3 diffs)
-
beepress.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
beepress/trunk/beebox/includes/Endpoint/Crawler.php
r2136253 r2238815 198 198 if ($targetRule) { 199 199 $featureImgRule = $targetRule['target']['img']; 200 //$proxyLink = $featureImgRule['proxy_link'];200 $proxyLink = $featureImgRule['proxy_link']; 201 201 } 202 202 -
beepress/trunk/beebox/includes/Utils/CrawlerCore.php
r2107156 r2238815 2 2 namespace Bee\Beebox\Utils; 3 3 use \Curl\Curl; 4 5 use function PHPSTORM_META\type; 4 6 5 7 if(!class_exists('simple_html_dom_node')){ … … 178 180 $contentArr = array(); 179 181 foreach($contentMatches as $match) { 180 $contentArr[] = $match-> outertext;182 $contentArr[] = $match->innertext; 181 183 } 182 184 $content = implode('<br/>', $contentArr); … … 263 265 case 2: 264 266 $htmlDOM = str_get_html($content); 265 $matches = $htmlDOM->find($rule['rule']); 266 if (isset($rule['src'])) { 267 foreach($matches as $match) { 268 $src = $match->getAttribute($rule['src']); 269 if ($src) { 270 $match->setAttribute('src', $src); 271 } 272 } 267 if ($htmlDOM) { 268 $matches = $htmlDOM->find($rule['rule']); 269 if (isset($rule['src'])) { 270 foreach($matches as $match) { 271 $src = $match->getAttribute($rule['src']); 272 if ($src) { 273 $match->setAttribute('src', $src); 274 } 275 } 276 } 277 $match = $matches; 278 $content = $htmlDOM->innertext; 279 } else { 280 var_dump($content); 273 281 } 274 $match = $matches;275 $content = $htmlDOM->outertext;276 282 break; 277 283 default: -
beepress/trunk/beepress.php
r2136253 r2238815 4 4 Plugin URI: http://xingyue.artizen.me?source=wp 5 5 Description: 蜜蜂采集(BeePress) 是一款能够帮助你导入微信公众号文章、知乎专栏文章、简书文章、今日头条文章的插件(支持规则配置采集其他网站文章),可以实现单篇或者批量导入、自动同步文章、采集指定公众号所有历史文章,支持将图片资源保存到本地,同时集成了强大的内容推荐功能。 6 Version: 6.3. 06 Version: 6.3.1 7 7 Author: Bee 8 8 Author URI: http://xingyue.artizen.me?source=wp … … 13 13 * 初始化 14 14 */ 15 define('BEEPRESS_VERSION', '6.3. 0');15 define('BEEPRESS_VERSION', '6.3.1'); 16 16 if(!class_exists('simple_html_dom_node')){ 17 17 require_once("simple_html_dom.php"); -
beepress/trunk/readme.txt
r2136253 r2238815 4 4 Author URI: http://xingyue.artizen.me?source=wp 5 5 Plugin URI: http://xingyue.artizen.me?source=wp 6 Stable tag: 6.3. 06 Stable tag: 6.3.1 7 7 Requires at least: 4.2 8 8 Requires PHP: 5.3.0 … … 52 52 None 53 53 == Changelog == 54 = 6.3.1 = 55 * 修复 7.0 测试版图片无法采集问题 54 56 = 6.3.0 = 55 57 * 修复 7.0 测试版头图无法采集的问题
Note: See TracChangeset
for help on using the changeset viewer.