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 29, 2024 via composer

fabpot/goutte v3.3.1

A simple PHP Web Scraper
Package summary
Share
1
issue
1
high severity
meta
1
1
license
15
MIT
Package created
15 May 2012
Version published
1 Nov 2020
Maintainers
1
Total deps
15
Direct deps
4
License
MIT

Issues

1

1 high severity issue

high
via: fabpot/goutte@v3.3.1
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
15 Packages, Including:
fabpot/goutte@v3.3.1
guzzlehttp/guzzle@6.5.8
guzzlehttp/promises@1.5.3
guzzlehttp/psr7@1.9.1
ralouphie/getallheaders@3.0.3
symfony/browser-kit@v5.4.39
symfony/css-selector@v5.4.39
symfony/deprecation-contracts@v3.5.0
symfony/dom-crawler@v5.4.39
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/polyfill-php80@v1.29.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

4
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
guzzlehttp/guzzle6.5.8-MIT
prod
symfony/browser-kitv5.4.39-MIT
prod
symfony/css-selectorv5.4.39-MIT
prod dev
symfony/dom-crawlerv5.4.39-MIT
prod

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.