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

Equal parts of article #92

@swash13

Description

@swash13

Example article: https://www.fleetfeet.com/blog/shoe-review-nike-air-zoom-pegasus-36
The problem is, that it's detecting as main content only one part of the article started with "Nike Pegasus 36 Ride and Performance". Other parts of the article is ommited. StripUnlikelyCandidates has no effect at all. Also image/main image is not detected, always null, not only for this case, but i tried 100+ articles and image is always null.
Is it possible to detect the full article, not just part of it ?

try {
            $readability = new Readability(new Configuration([
                'StripUnlikelyCandidates' => false
            ]));

            $readability->parse($this->html);

            return $readability;
        } catch (\Exception $exception) {
            throw new \Exception($exception->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