Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

Images problems #91

@CihanAksoy

Description

@CihanAksoy

Doesn't take pictures from some sites

$readability = new \andreskrey\Readability\Readability((new \andreskrey\Readability\Configuration())
        ->setFixRelativeURLs(true)
        ->setOriginalURL('https://stayglam.com/life/sexy-tattoos/'));

    $html = file_get_contents('https://stayglam.com/life/sexy-tattoos/');

    try {
        $readability->parse($html);
        //$data = $readability->getImages();
        //var_dump($data);
        echo $readability;
    }
    catch (\andreskrey\Readability\ParseException $e) {
        echo sprintf('Error processing text: %s', $e->getMessage());
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions