aboustayyef/extractor

一个包装类,围绕 Feeling Lucky 的 PHP Readability 提取 URL 中的 html、text 和标题

dev-master 2015-06-20 12:38 UTC

This package is not auto-updated.

Last update: 2024-09-28 17:49:15 UTC


README

# 文本

这是一个从 URL 提取文本的实用类。它是对(不再更新的)fivefilters 的 PHP readability 类的一个简单包装。

## 使用

<?php

use Aboustayyef\Extractor;
$document = new Extractor("http://source/to/document.html");
$title = $document->getTitle();
$text = $document->getText();


?>