Switch to fivefilters/readability.php as andreskrey's has been deprecated since August 2021.

This commit is contained in:
Dave Jansen
2023-08-14 01:29:20 +00:00
parent b15bc8c7dd
commit aeb7114d53
4 changed files with 170 additions and 481 deletions

View File

@@ -24,7 +24,7 @@
<h3>Who made FrogFind?</h3> <h3>Who made FrogFind?</h3>
Hi, I'm Sean, A.K.A. <a href="https://youtube.com/ActionRetro">Action Retro</a> on YouTube. I work on a lot of 80's and 90's Macs (and other vintage machines), and I really like to try and get them online. However, the modern internet is not kind to old machines, which generally cannot handle the complicated javascript, CSS, and encryption that modern sites have. However, they can browse basic websites just fine. So I decided to see how much of the internet I could turn into basic websites, so that old machines can browse the modern internet once again! Hi, I'm Sean, A.K.A. <a href="https://youtube.com/ActionRetro">Action Retro</a> on YouTube. I work on a lot of 80's and 90's Macs (and other vintage machines), and I really like to try and get them online. However, the modern internet is not kind to old machines, which generally cannot handle the complicated javascript, CSS, and encryption that modern sites have. However, they can browse basic websites just fine. So I decided to see how much of the internet I could turn into basic websites, so that old machines can browse the modern internet once again!
<h3>How does FrogFind work?</h3> <h3>How does FrogFind work?</h3>
The search functionality of FrogFind is basically a custom wrapper for DuckDuckGo search, converting the results to extremely basic HTML that old browsers can read. When clicking through to pages from search results, those pages are processed through a <a href="https://github.com/andreskrey/readability.php" target="_blank">PHP port of Mozilla's Readability</a>, which is what powers Firefox's reader mode. I then further strip down the results to be as basic HTML as possible. The search functionality of FrogFind is basically a custom wrapper for DuckDuckGo search, converting the results to extremely basic HTML that old browsers can read. When clicking through to pages from search results, those pages are processed through a <a href="https://github.com/fivefilters/readability.php" target="_blank">PHP port of Mozilla's Readability</a>, which is what powers Firefox's reader mode. I then further strip down the results to be as basic HTML as possible.
<h3>What machines do you test FrogFind on?</h3> <h3>What machines do you test FrogFind on?</h3>
I designed FrogFind with classic Macs in mind, so I've been testing on my SE/30 to make sure it looks good in 1 bit color with a 512x384 resolution. Most of my testing has been on Netscape 1.1N and 2.0.2, as well as a few 68k Mac versions of iCab. FrogFind should also work great on any text-based web browser! I designed FrogFind with classic Macs in mind, so I've been testing on my SE/30 to make sure it looks good in 1 bit color with a 512x384 resolution. Most of my testing has been on Netscape 1.1N and 2.0.2, as well as a few 68k Mac versions of iCab. FrogFind should also work great on any text-based web browser!
<h3>How can I get in touch with you?</h3> <h3>How can I get in touch with you?</h3>

View File

@@ -1,5 +1,5 @@
{ {
"require": { "require": {
"andreskrey/readability.php": "^2.1" "fivefilters/readability.php": "^3.1"
} }
} }

641
composer.lock generated
View File

@@ -4,32 +4,34 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "a2f9b7f965f2ce035b50e4d622091449", "content-hash": "19eb6da47fbfc12352622df9e1cece53",
"packages": [ "packages": [
{ {
"name": "andreskrey/readability.php", "name": "fivefilters/readability.php",
"version": "v2.1.0", "version": "v3.1.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/andreskrey/readability.php.git", "url": "https://github.com/fivefilters/readability.php.git",
"reference": "7617a912b6c527909168f5d41d263792f171c42a" "reference": "a00d35cb5eb14a236ba42326da9ac52c8c9f80a1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/andreskrey/readability.php/zipball/7617a912b6c527909168f5d41d263792f171c42a", "url": "https://api.github.com/repos/fivefilters/readability.php/zipball/a00d35cb5eb14a236ba42326da9ac52c8c9f80a1",
"reference": "7617a912b6c527909168f5d41d263792f171c42a", "reference": "a00d35cb5eb14a236ba42326da9ac52c8c9f80a1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-dom": "*", "ext-dom": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-xml": "*", "ext-xml": "*",
"php": ">=7.0.0", "league/uri": "~6.7.2",
"psr/log": "^1.0" "masterminds/html5": "^2.0",
"php": ">=7.4.0",
"psr/log": "^1.0 || ^2.0 || ^3.0"
}, },
"require-dev": { "require-dev": {
"monolog/monolog": "^1.24", "monolog/monolog": "^2.3",
"phpunit/phpunit": "^6.5" "phpunit/phpunit": "^9"
}, },
"suggest": { "suggest": {
"monolog/monolog": "Allow logging debug information" "monolog/monolog": "Allow logging debug information"
@@ -37,7 +39,7 @@
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"andreskrey\\Readability\\": "src/" "fivefilters\\Readability\\": "src/"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@@ -48,70 +50,77 @@
{ {
"name": "Andres Rey", "name": "Andres Rey",
"email": "andreskrey@gmail.com", "email": "andreskrey@gmail.com",
"role": "Lead Developer" "role": "Original Developer"
},
{
"name": "Keyvan Minoukadeh",
"email": "keyvan@fivefilters.org",
"homepage": "https://www.fivefilters.org",
"role": "Developer/Maintainer"
} }
], ],
"description": "A PHP port of Readability.js", "description": "A PHP port of Readability.js",
"homepage": "https://github.com/andreskrey/readability", "homepage": "https://github.com/fivefilters/readability.php",
"keywords": [ "keywords": [
"html", "html",
"readability" "readability"
], ],
"support": { "support": {
"issues": "https://github.com/andreskrey/readability.php/issues", "issues": "https://github.com/fivefilters/readability.php/issues",
"source": "https://github.com/andreskrey/readability.php/tree/v2.1.0" "source": "https://github.com/fivefilters/readability.php/tree/v3.1.6"
}, },
"time": "2019-07-22T21:42:25+00:00" "time": "2023-06-15T18:06:49+00:00"
}, },
{ {
"name": "guzzlehttp/guzzle", "name": "league/uri",
"version": "7.3.0", "version": "6.7.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/guzzle.git", "url": "https://github.com/thephpleague/uri.git",
"reference": "7008573787b430c1c1f650e3722d9bba59967628" "reference": "d3b50812dd51f3fbf176344cc2981db03d10fe06"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628", "url": "https://api.github.com/repos/thephpleague/uri/zipball/d3b50812dd51f3fbf176344cc2981db03d10fe06",
"reference": "7008573787b430c1c1f650e3722d9bba59967628", "reference": "d3b50812dd51f3fbf176344cc2981db03d10fe06",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"guzzlehttp/promises": "^1.4", "league/uri-interfaces": "^2.3",
"guzzlehttp/psr7": "^1.7 || ^2.0", "php": "^7.4 || ^8.0",
"php": "^7.2.5 || ^8.0", "psr/http-message": "^1.0"
"psr/http-client": "^1.0"
}, },
"provide": { "conflict": {
"psr/http-client-implementation": "1.0" "league/uri-schemes": "^1.0"
}, },
"require-dev": { "require-dev": {
"bamarni/composer-bin-plugin": "^1.4.1", "friendsofphp/php-cs-fixer": "^v3.3.2",
"ext-curl": "*", "nyholm/psr7": "^1.5",
"php-http/client-integration-tests": "^3.0", "php-http/psr7-integration-tests": "^1.1",
"phpunit/phpunit": "^8.5.5 || ^9.3.5", "phpstan/phpstan": "^1.2.0",
"psr/log": "^1.1" "phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/phpstan-strict-rules": "^1.1.0",
"phpunit/phpunit": "^9.5.10",
"psr/http-factory": "^1.0"
}, },
"suggest": { "suggest": {
"ext-curl": "Required for CURL handler support", "ext-fileinfo": "Needed to create Data URI from a filepath",
"ext-intl": "Required for Internationalized Domain Name (IDN) support", "ext-intl": "Needed to improve host validation",
"psr/log": "Required for using the Log middleware" "league/uri-components": "Needed to easily manipulate URI objects",
"psr/http-factory": "Needed to use the URI factory"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "7.3-dev" "dev-master": "6.x-dev"
} }
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"GuzzleHttp\\": "src/" "League\\Uri\\": "src"
}, }
"files": [
"src/functions_include.php"
]
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
@@ -119,150 +128,87 @@
], ],
"authors": [ "authors": [
{ {
"name": "Michael Dowling", "name": "Ignace Nyamagana Butera",
"email": "mtdowling@gmail.com", "email": "nyamsprod@gmail.com",
"homepage": "https://github.com/mtdowling" "homepage": "https://nyamsprod.com"
},
{
"name": "Márk Sági-Kazár",
"email": "mark.sagikazar@gmail.com",
"homepage": "https://sagikazarmark.hu"
} }
], ],
"description": "Guzzle is a PHP HTTP client library", "description": "URI manipulation library",
"homepage": "http://guzzlephp.org/", "homepage": "https://uri.thephpleague.com",
"keywords": [ "keywords": [
"client", "data-uri",
"curl", "file-uri",
"framework", "ftp",
"hostname",
"http", "http",
"http client", "https",
"psr-18", "middleware",
"parse_str",
"parse_url",
"psr-7", "psr-7",
"rest", "query-string",
"web service" "querystring",
"rfc3986",
"rfc3987",
"rfc6570",
"uri",
"uri-template",
"url",
"ws"
], ],
"support": { "support": {
"issues": "https://github.com/guzzle/guzzle/issues", "docs": "https://uri.thephpleague.com",
"source": "https://github.com/guzzle/guzzle/tree/7.3.0" "forum": "https://thephpleague.slack.com",
"issues": "https://github.com/thephpleague/uri/issues",
"source": "https://github.com/thephpleague/uri/tree/6.7.2"
}, },
"funding": [ "funding": [
{ {
"url": "https://github.com/GrahamCampbell", "url": "https://github.com/sponsors/nyamsprod",
"type": "github"
},
{
"url": "https://github.com/Nyholm",
"type": "github"
},
{
"url": "https://github.com/alexeyshockov",
"type": "github"
},
{
"url": "https://github.com/gmponos",
"type": "github" "type": "github"
} }
], ],
"time": "2021-03-23T11:33:13+00:00" "time": "2022-09-13T19:50:42+00:00"
}, },
{ {
"name": "guzzlehttp/promises", "name": "league/uri-interfaces",
"version": "1.4.1", "version": "2.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/promises.git", "url": "https://github.com/thephpleague/uri-interfaces.git",
"reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d" "reference": "00e7e2943f76d8cb50c7dfdc2f6dee356e15e383"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d", "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/00e7e2943f76d8cb50c7dfdc2f6dee356e15e383",
"reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d", "reference": "00e7e2943f76d8cb50c7dfdc2f6dee356e15e383",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.5" "ext-json": "*",
"php": "^7.2 || ^8.0"
}, },
"require-dev": { "require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5.1" "friendsofphp/php-cs-fixer": "^2.19",
}, "phpstan/phpstan": "^0.12.90",
"type": "library", "phpstan/phpstan-phpunit": "^0.12.19",
"extra": { "phpstan/phpstan-strict-rules": "^0.12.9",
"branch-alias": { "phpunit/phpunit": "^8.5.15 || ^9.5"
"dev-master": "1.4-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Promise\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Guzzle promises library",
"keywords": [
"promise"
],
"support": {
"issues": "https://github.com/guzzle/promises/issues",
"source": "https://github.com/guzzle/promises/tree/1.4.1"
},
"time": "2021-03-07T09:25:29+00:00"
},
{
"name": "guzzlehttp/psr7",
"version": "1.8.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "35ea11d335fd638b5882ff1725228b3d35496ab1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/35ea11d335fd638b5882ff1725228b3d35496ab1",
"reference": "35ea11d335fd638b5882ff1725228b3d35496ab1",
"shasum": ""
},
"require": {
"php": ">=5.4.0",
"psr/http-message": "~1.0",
"ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
},
"provide": {
"psr/http-message-implementation": "1.0"
},
"require-dev": {
"ext-zlib": "*",
"phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
}, },
"suggest": { "suggest": {
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" "ext-intl": "to use the IDNA feature",
"symfony/intl": "to use the IDNA feature via Symfony Polyfill"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.7-dev" "dev-master": "2.x-dev"
} }
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"GuzzleHttp\\Psr7\\": "src/" "League\\Uri\\": "src/"
}, }
"files": [
"src/functions_include.php"
]
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
@@ -270,96 +216,61 @@
], ],
"authors": [ "authors": [
{ {
"name": "Michael Dowling", "name": "Ignace Nyamagana Butera",
"email": "mtdowling@gmail.com", "email": "nyamsprod@gmail.com",
"homepage": "https://github.com/mtdowling" "homepage": "https://nyamsprod.com"
},
{
"name": "Tobias Schultze",
"homepage": "https://github.com/Tobion"
} }
], ],
"description": "PSR-7 message implementation that also provides common utility methods", "description": "Common interface for URI representation",
"homepage": "http://github.com/thephpleague/uri-interfaces",
"keywords": [ "keywords": [
"http", "rfc3986",
"message", "rfc3987",
"psr-7",
"request",
"response",
"stream",
"uri", "uri",
"url" "url"
], ],
"support": { "support": {
"issues": "https://github.com/guzzle/psr7/issues", "issues": "https://github.com/thephpleague/uri-interfaces/issues",
"source": "https://github.com/guzzle/psr7/tree/1.8.1" "source": "https://github.com/thephpleague/uri-interfaces/tree/2.3.0"
}, },
"time": "2021-03-21T16:25:00+00:00" "funding": [
},
{
"name": "jakeasmith/http_build_url",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/jakeasmith/http_build_url.git",
"reference": "93c273e77cb1edead0cf8bcf8cd2003428e74e37"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jakeasmith/http_build_url/zipball/93c273e77cb1edead0cf8bcf8cd2003428e74e37",
"reference": "93c273e77cb1edead0cf8bcf8cd2003428e74e37",
"shasum": ""
},
"type": "library",
"autoload": {
"files": [
"src/http_build_url.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{ {
"name": "Jake A. Smith", "url": "https://github.com/sponsors/nyamsprod",
"email": "theman@jakeasmith.com" "type": "github"
} }
], ],
"description": "Provides functionality for http_build_url() to environments without pecl_http.", "time": "2021-06-28T04:27:21+00:00"
"support": {
"issues": "https://github.com/jakeasmith/http_build_url/issues",
"source": "https://github.com/jakeasmith/http_build_url"
},
"time": "2017-05-01T15:36:40+00:00"
}, },
{ {
"name": "psr/http-client", "name": "masterminds/html5",
"version": "1.0.1", "version": "2.8.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/http-client.git", "url": "https://github.com/Masterminds/html5-php.git",
"reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" "reference": "f47dcf3c70c584de14f21143c55d9939631bc6cf"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f47dcf3c70c584de14f21143c55d9939631bc6cf",
"reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", "reference": "f47dcf3c70c584de14f21143c55d9939631bc6cf",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.0 || ^8.0", "ext-dom": "*",
"psr/http-message": "^1.0" "php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.0.x-dev" "dev-master": "2.7-dev"
} }
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Psr\\Http\\Client\\": "src/" "Masterminds\\": "src"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@@ -368,44 +279,56 @@
], ],
"authors": [ "authors": [
{ {
"name": "PHP-FIG", "name": "Matt Butcher",
"homepage": "http://www.php-fig.org/" "email": "technosophos@gmail.com"
},
{
"name": "Matt Farina",
"email": "matt@mattfarina.com"
},
{
"name": "Asmir Mustafic",
"email": "goetas@gmail.com"
} }
], ],
"description": "Common interface for HTTP clients", "description": "An HTML5 parser and serializer.",
"homepage": "https://github.com/php-fig/http-client", "homepage": "http://masterminds.github.io/html5-php",
"keywords": [ "keywords": [
"http", "HTML5",
"http-client", "dom",
"psr", "html",
"psr-18" "parser",
"querypath",
"serializer",
"xml"
], ],
"support": { "support": {
"source": "https://github.com/php-fig/http-client/tree/master" "issues": "https://github.com/Masterminds/html5-php/issues",
"source": "https://github.com/Masterminds/html5-php/tree/2.8.1"
}, },
"time": "2020-06-29T06:28:15+00:00" "time": "2023-05-10T11:58:31+00:00"
}, },
{ {
"name": "psr/http-message", "name": "psr/http-message",
"version": "1.0.1", "version": "1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/http-message.git", "url": "https://github.com/php-fig/http-message.git",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.0" "php": "^7.2 || ^8.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.0.x-dev" "dev-master": "1.1.x-dev"
} }
}, },
"autoload": { "autoload": {
@@ -434,36 +357,36 @@
"response" "response"
], ],
"support": { "support": {
"source": "https://github.com/php-fig/http-message/tree/master" "source": "https://github.com/php-fig/http-message/tree/1.1"
}, },
"time": "2016-08-06T14:39:51+00:00" "time": "2023-04-04T09:50:52+00:00"
}, },
{ {
"name": "psr/log", "name": "psr/log",
"version": "1.1.3", "version": "3.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/log.git", "url": "https://github.com/php-fig/log.git",
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001",
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.0" "php": ">=8.0.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.1.x-dev" "dev-master": "3.x-dev"
} }
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Psr\\Log\\": "Psr/Log/" "Psr\\Log\\": "src"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@@ -473,7 +396,7 @@
"authors": [ "authors": [
{ {
"name": "PHP-FIG", "name": "PHP-FIG",
"homepage": "http://www.php-fig.org/" "homepage": "https://www.php-fig.org/"
} }
], ],
"description": "Common interface for logging libraries", "description": "Common interface for logging libraries",
@@ -484,243 +407,9 @@
"psr-3" "psr-3"
], ],
"support": { "support": {
"source": "https://github.com/php-fig/log/tree/1.1.3" "source": "https://github.com/php-fig/log/tree/3.0.0"
}, },
"time": "2020-03-23T09:12:05+00:00" "time": "2021-07-14T16:46:02+00:00"
},
{
"name": "ralouphie/getallheaders",
"version": "3.0.3",
"source": {
"type": "git",
"url": "https://github.com/ralouphie/getallheaders.git",
"reference": "120b605dfeb996808c31b6477290a714d356e822"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
"reference": "120b605dfeb996808c31b6477290a714d356e822",
"shasum": ""
},
"require": {
"php": ">=5.6"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^5 || ^6.5"
},
"type": "library",
"autoload": {
"files": [
"src/getallheaders.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ralph Khattar",
"email": "ralph.khattar@gmail.com"
}
],
"description": "A polyfill for getallheaders.",
"support": {
"issues": "https://github.com/ralouphie/getallheaders/issues",
"source": "https://github.com/ralouphie/getallheaders/tree/develop"
},
"time": "2019-03-08T08:55:37+00:00"
},
{
"name": "scotteh/php-dom-wrapper",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/scotteh/php-dom-wrapper.git",
"reference": "f4cc356f39c822b6e035521fb21c0860f4de053e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/scotteh/php-dom-wrapper/zipball/f4cc356f39c822b6e035521fb21c0860f4de053e",
"reference": "f4cc356f39c822b6e035521fb21c0860f4de053e",
"shasum": ""
},
"require": {
"ext-libxml": "*",
"ext-mbstring": "*",
"lib-libxml": ">=2.7.7",
"php": ">=7.1.0",
"symfony/css-selector": "^4.0 || ^5.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"autoload": {
"psr-4": {
"DOMWrap\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Andrew Scott",
"email": "andrew@andrewscott.net.au"
}
],
"description": "Simple DOM wrapper to select nodes using either CSS or XPath expressions and manipulate results quickly and easily.",
"homepage": "https://github.com/scotteh/php-dom-wrapper",
"keywords": [
"css",
"dom",
"html",
"parser",
"wrapper"
],
"support": {
"issues": "https://github.com/scotteh/php-dom-wrapper/issues",
"source": "https://github.com/scotteh/php-dom-wrapper/tree/2.0.0"
},
"time": "2021-01-24T05:47:18+00:00"
},
{
"name": "scotteh/php-goose",
"version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/scotteh/php-goose.git",
"reference": "78599a1bac6af271ce8bc4fab6cdce76c1d3feca"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/scotteh/php-goose/zipball/78599a1bac6af271ce8bc4fab6cdce76c1d3feca",
"reference": "78599a1bac6af271ce8bc4fab6cdce76c1d3feca",
"shasum": ""
},
"require": {
"ext-libxml": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.0|^7.0",
"jakeasmith/http_build_url": "1.0.*",
"lib-libxml": ">=2.7.7",
"php": ">=7.1.0",
"scotteh/php-dom-wrapper": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"psr-4": {
"Goose\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "Andrew Scott",
"email": "andrew@andrewscott.net.au"
}
],
"description": "Readability / Html Content / Article Extractor & Web Scrapping library written in PHP",
"homepage": "https://github.com/scotteh/php-goose",
"keywords": [
"content",
"extractor",
"http",
"readability",
"scraper",
"scraping",
"text",
"website"
],
"support": {
"issues": "https://github.com/scotteh/php-goose/issues",
"source": "https://github.com/scotteh/php-goose/tree/1.1.0"
},
"time": "2021-01-24T06:24:11+00:00"
},
{
"name": "symfony/css-selector",
"version": "v5.2.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "f65f217b3314504a1ec99c2d6ef69016bb13490f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/f65f217b3314504a1ec99c2d6ef69016bb13490f",
"reference": "f65f217b3314504a1ec99c2d6ef69016bb13490f",
"shasum": ""
},
"require": {
"php": ">=7.2.5"
},
"type": "library",
"autoload": {
"psr-4": {
"Symfony\\Component\\CssSelector\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Jean-François Simon",
"email": "jeanfrancois.simon@sensiolabs.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Converts CSS selectors to XPath expressions",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/css-selector/tree/v5.2.4"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-27T10:01:46+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],
@@ -731,5 +420,5 @@
"prefer-lowest": false, "prefer-lowest": false,
"platform": [], "platform": [],
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.0.0" "plugin-api-version": "2.3.0"
} }

View File

@@ -24,9 +24,9 @@ if (substr( $article_url, 0, 4 ) != "http") {
$host = parse_url($article_url, PHP_URL_HOST); $host = parse_url($article_url, PHP_URL_HOST);
use andreskrey\Readability\Readability; use fivefilters\Readability\Readability;
use andreskrey\Readability\Configuration; use fivefilters\Readability\Configuration;
use andreskrey\Readability\ParseException; use fivefilters\Readability\ParseException;
$configuration = new Configuration(); $configuration = new Configuration();
$configuration $configuration