Git Product home page Git Product logo

Comments (11)

j0k3r avatar j0k3r commented on June 26, 2024

I just tried with a simple script and I got the same result (which you can put at the root of the project):

<?php

require 'vendor/autoload.php';

$full = new \Graby\Graby(array('debug' => true));
$res = $full->fetchContent('http://www.rom-game.fr/news/2446-Jean%20Baudlot%20-%20de%20l%20Eurovision%20a%20Delphine%20Software.html');

var_export($res);

Graby 1.6.1 (same result with 1.6.0), php-readability 1.1.6

from graby.

Simounet avatar Simounet commented on June 26, 2024

I did that but get no content. Do I need a special extension? I don't know how to debug this. :/

from graby.

j0k3r avatar j0k3r commented on June 26, 2024

Do you have tidy installed?

j0k@MBP:~/Sites/github/graby$ php -i | grep tidy
/usr/local/etc/php/5.6/conf.d/ext-tidy.ini,
tidy
tidy.clean_output => no value => no value
tidy.default_config => no value => no value

from graby.

j0k3r avatar j0k3r commented on June 26, 2024

Without tidy:

j0k@MBP:~/Sites/github/graby$ php test.php
array (
  'status' => 200,
  'html' => '[unable to retrieve full-text content]',
  'title' => 'Jean Baudlot - de l\'Eurovision à Delphine Software',
  'language' => 'fr',
  'url' => 'http://www.rom-game.fr/news/2446-Jean%20Baudlot%20-%20de%20l%20Eurovision%20a%20Delphine%20Software.html',
  'content_type' => 'text/html',
  'open_graph' =>
  array (
    'og_title' => 'Jean Baudlot - de l\'Eurovision à Delphine Software',
    'og_description' => 'Il est celui par qui tout a commencé : raconter l\'histoire de Jean Baudlot revient à faire la genèse de Delphine Software, un des fruits les plus savoureux de l\'aventure du jeu vidéo français. De l\'Eurovision 1979 à l\'Amiga 2000, des Voyageurs du Temps à Croisière pour un Cadavre, Jean Baudlot a bien voulu nous livrer quelques anecdotes sur son parcours...',
    'og_type' => 'article',
    'og_image' => 'http://www.rom-game.fr/multimedia/news/170123_jeanbaudlot730x334.jpg',
    'og_url' => 'http://www.rom-game.fr/news/2446-Jean+Baudlot+-+de+l+Eurovision+a+Delphine+Software.html',
  ),
  'native_ad' => false,
  'summary' => '[unable to retrieve full-text content]',
)

I think you need to install the tidy extension.

from graby.

Simounet avatar Simounet commented on June 26, 2024

Hmmm, it fixed the standalone issue but not the wallabag one. Even if I cleared my cache.

from graby.

Simounet avatar Simounet commented on June 26, 2024

It might be a cache issue this time because it is working this morning. It could be great adding tidy to the requirements or at least to en enhanced experience explained into the documentation.

from graby.

j0k3r avatar j0k3r commented on June 26, 2024

It's a requirement from php-readability, not graby.
https://github.com/j0k3r/php-readability/blob/master/README.md#requirements

Also, maybe this will prevent the problem when suggesting the extension but it doesn't seems to work atm j0k3r/php-readability#25

from graby.

Simounet avatar Simounet commented on June 26, 2024

Fair enough. Thanks anyway!

from graby.

Simounet avatar Simounet commented on June 26, 2024

Sorry, I'm back. Getting no content with http://www.begeek.fr/the-elder-scrolls-legends-officiellement-lance-pc-233727 event on wallabag.it but it is working on f43.me.

from graby.

j0k3r avatar j0k3r commented on June 26, 2024

Sorry to get back so late on this, but I'm getting content for that url using graby.

from graby.

Simounet avatar Simounet commented on June 26, 2024

It seems to be fixed. Closing.

from graby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.