It allow to determine if a website is generated using Wordpress, Blogger, etc ..
public findHostUsingFingerprints ( string $html ) : string | false | ||
$html | string | |
리턴 | string | false |
/** * Test if fingerprints are well extract from meta node. */ public function testFingerPrints() { $contentExtractor = new ContentExtractor(array('config_builder' => array('site_config' => array(dirname(__FILE__))))); $res = $contentExtractor->findHostUsingFingerprints(''); $this->assertFalse($res, 'Nothing host found because empty html'); $res = $contentExtractor->findHostUsingFingerprints('<html><head><meta name="generator" content="Blogger" /></head></html>'); $this->assertEquals('fingerprint.blogspot.com', $res); }