blob: 59af4be8ec6c8d3c575ea2daf54d14492826bb39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
require __DIR__ . '/../vendor/autoload.php';
use App\Etym;
$baseURL = "http://www.etymonline.com/word/";
$htmlNode = "section[class^='word__defination']";
$pasteCmd = "../pastebinit -b http://p.of.je";
$etym = new Etym($baseURL, $htmlNode, $pasteCmd);
$result = $etym->getDefinition();
echo $result . PHP_EOL;
|