【文件属性】:
文件名称:skraypar:Skraypar,使用迭代器和先行模式进行图案刮取
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-11 06:07:49
html php parser scraper library
Skraypar-模式解析器
开发(但不限于) 作为单独的抽象类的核心解析功能。
工作正在进行中
安装
该库使用 ,首先安装。
composer require irfan-dahir/skraypar
用法
<?php
require 'vendor/autoload.php' ;
class Parser extends \ Skraypar \ Skraypar {
public function loadRules () { // Abstract function
$ this -> addRule (
'anime_url' , // used as a hash key
'~<meta property="og:url" content="(.*?)">~' , // Pattern to match
function () { // Funct
【文件预览】:
skraypar-master
----composer.json(441B)
----composer.lock(8KB)
----LICENSE(34KB)
----src()
--------Helper()
--------Skraypar.php(2KB)
--------Iterator.php(2KB)
--------Rule.php(267B)
----examples()
--------LookAhead.php(5KB)
--------Iterator.php(5KB)
----.gitignore(17B)
----README.md(2KB)