src/Dominia/Crawler.php
private function processLink($link){
        $processed = false;
        $hash = md5($link);
        $filename = $this->getFilename($link);
        if(!$this->existePdf($filename, $hash)){
            //echo $link . "\n";
            $content = $this->getDocument($link);
            $this->saveFile($filename, $content, $hash);
            $processed = true;
            echo $link . "\n";
        }else{
            echo "Skipped\n";
        }
        return $processed;
    }
private function processLink($link){
        $processed = false;
        $hash = md5($link);
        $filename = $this->getFilename($link);
        if(!$this->existePdf($filename, $hash)){
            //echo $link . "\n";
            $content = $this->getDocument($link);
            $this->saveFile($filename, $content, $hash);
            $processed = true;
            echo $link . "\n";
        }else{
            echo "Skipped\n";
        }
        return $processed;
    }
Retrieve and save a pdf document specified by $link parameter
@param $link   QueryString to pdf document
@return bool   True if the document is new and not skipped
@throws \GuzzleHttp\Exception\GuzzleException