diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/run.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/run.php b/scripts/run.php new file mode 100644 index 0000000..b50bcc7 --- /dev/null +++ b/scripts/run.php @@ -0,0 +1,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 2>/dev/null"; + +$etym = new Etym($baseURL, $htmlNode, $pasteCmd); +$result = $etym->getDefinition(); + +echo $result . PHP_EOL; |