Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
This package has been abandoned. Use symfony/browser-kit instead.
Generated on May 19, 2024 via composer

fabpot/goutte v4.0.3

A simple PHP Web Scraper
Package summary
Share
1
issue
1
high severity
meta
1
1
license
17
MIT
Package created
15 May 2012
Version published
1 Apr 2023
Maintainers
1
Total deps
17
Direct deps
6
License
MIT

Issues

1

1 high severity issue

high
via: fabpot/goutte@v4.0.3
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
17 Packages, Including:
fabpot/goutte@v4.0.3
masterminds/html5@2.9.0
psr/container@2.0.2
psr/log@3.0.0
symfony/browser-kit@v6.4.7
symfony/css-selector@v6.4.7
symfony/deprecation-contracts@v3.5.0
symfony/dom-crawler@v6.4.7
symfony/http-client@v6.4.7
symfony/http-client-contracts@v3.5.0
symfony/mime@v6.4.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
symfony/service-contracts@v3.5.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of fabpot/goutte 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/browser-kitv6.4.7-MIT
prod
symfony/css-selectorv6.4.7-MIT
prod dev
symfony/deprecation-contractsv3.5.0-MIT
prod dev
symfony/dom-crawlerv6.4.7-MIT
prod
symfony/http-clientv6.4.7-MIT
prod dev
symfony/mimev6.4.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does fabpot/goutte do?

Fabpot/Goutte is a screen scraping and web crawling library for PHP, designed to create a friendly API for crawling websites and extracting data from HTML/XML responses. Please note this library has been deprecated, and as of v4, Goutte functions as a simple proxy to the HttpBrowser class from the Symfony BrowserKit component.

How do you use fabpot/goutte?

Fabpot/Goutte can be used in a variety of ways. Here's an example of how you can use it:

Firstly, you need to install the library. You can add fabpot/goutte as a required dependency in your composer.json file. To install it, use the following command:

composer require fabpot/goutte

Once the library is installed, you can create a Goutte\Client instance like this:

use Goutte\Client;

$client = new Client();

Make a request using the request() method like this:

$crawler = $client->request('GET', 'https://www.symfony.com/blog/');

This returns a Symfony\Component\DomCrawler\Crawler object, which you can then use to extract data from a webpage. For instance, you can do something like this to get the text of all headers within 'h2 > a' tags on a page:

$crawler->filter('h2 > a')->each(function ($node) {
    print $node->text()."\n";
});

Where are the fabpot/goutte docs?

You can find the documentation for Fabpot/Goutte alongside the BrowserKit, DomCrawler, and HttpClient Symfony Components, since Goutte is a thin wrapper around these components. More information can be found on these respective pages: BrowserKit, DomCrawler, HttpClient.