[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8199":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},8199,"Goutte","FriendsOfPHP\u002FGoutte","FriendsOfPHP","Goutte, a simple PHP Web Scraper","",null,"PHP",9200,987,3,138,0,1,65.08,"MIT License",true,false,"master",[],"2026-06-12 04:00:38","Goutte, a simple PHP Web Scraper\n================================\n\nGoutte is a screen scraping and web crawling library for PHP.\n\nGoutte provides a nice API to crawl websites and extract data from the HTML\u002FXML\nresponses.\n\n**WARNING**: This library is deprecated. As of v4, Goutte became a simple proxy\nto the `HttpBrowser class\n\u003Chttps:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcomponents\u002Fbrowser_kit.html#making-external-http-requests>`_\nfrom the `Symfony BrowserKit \u003Chttps:\u002F\u002Fsymfony.com\u002Fbrowser-kit>`_ component. To\nmigrate, replace ``Goutte\\Client`` by\n``Symfony\\Component\\BrowserKit\\HttpBrowser`` in your code.\n\nRequirements\n------------\n\nGoutte depends on PHP 7.1+.\n\nInstallation\n------------\n\nAdd ``fabpot\u002Fgoutte`` as a require dependency in your ``composer.json`` file:\n\n.. code-block:: bash\n\n    composer require fabpot\u002Fgoutte\n\nUsage\n-----\n\nCreate a Goutte Client instance (which extends\n``Symfony\\Component\\BrowserKit\\HttpBrowser``):\n\n.. code-block:: php\n\n    use Goutte\\Client;\n\n    $client = new Client();\n\nMake requests with the ``request()`` method:\n\n.. code-block:: php\n\n    \u002F\u002F Go to the symfony.com website\n    $crawler = $client->request('GET', 'https:\u002F\u002Fwww.symfony.com\u002Fblog\u002F');\n\nThe method returns a ``Crawler`` object\n(``Symfony\\Component\\DomCrawler\\Crawler``).\n\nTo use your own HTTP settings, you may create and pass an HttpClient\ninstance to Goutte. For example, to add a 60 second request timeout:\n\n.. code-block:: php\n\n    use Goutte\\Client;\n    use Symfony\\Component\\HttpClient\\HttpClient;\n\n    $client = new Client(HttpClient::create(['timeout' => 60]));\n\nClick on links:\n\n.. code-block:: php\n\n    \u002F\u002F Click on the \"Security Advisories\" link\n    $link = $crawler->selectLink('Security Advisories')->link();\n    $crawler = $client->click($link);\n\nExtract data:\n\n.. code-block:: php\n\n    \u002F\u002F Get the latest post in this category and display the titles\n    $crawler->filter('h2 > a')->each(function ($node) {\n        print $node->text().\"\\n\";\n    });\n\nSubmit forms:\n\n.. code-block:: php\n\n    $crawler = $client->request('GET', 'https:\u002F\u002Fgithub.com\u002F');\n    $crawler = $client->click($crawler->selectLink('Sign in')->link());\n    $form = $crawler->selectButton('Sign in')->form();\n    $crawler = $client->submit($form, ['login' => 'fabpot', 'password' => 'xxxxxx']);\n    $crawler->filter('.flash-error')->each(function ($node) {\n        print $node->text().\"\\n\";\n    });\n\nMore Information\n----------------\n\nRead the documentation of the `BrowserKit`_, `DomCrawler`_, and `HttpClient`_\nSymfony Components for more information about what you can do with Goutte.\n\nPronunciation\n-------------\n\nGoutte is pronounced ``goot`` i.e. it rhymes with ``boot`` and not ``out``.\n\nTechnical Information\n---------------------\n\nGoutte is a thin wrapper around the following Symfony Components:\n`BrowserKit`_, `CssSelector`_, `DomCrawler`_, and `HttpClient`_.\n\nLicense\n-------\n\nGoutte is licensed under the MIT license.\n\n.. _`Composer`: https:\u002F\u002Fgetcomposer.org\n.. _`BrowserKit`: https:\u002F\u002Fsymfony.com\u002Fcomponents\u002FBrowserKit\n.. _`DomCrawler`: https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcomponents\u002Fdom_crawler.html\n.. _`CssSelector`: https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcomponents\u002Fcss_selector.html\n.. _`HttpClient`: https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcomponents\u002Fhttp_client.html\n","Goutte 是一个简单的 PHP 网页抓取库，用于网页爬取和数据提取。它提供了一个友好的 API，可以方便地爬取网站并从 HTML\u002FXML 响应中抽取所需信息。项目基于 Symfony 的 BrowserKit 组件，特别是 HttpBrowser 类，允许用户自定义 HTTP 客户端设置如请求超时时间等。尽管 Goutte 已被标记为弃用，并建议迁移到 Symfony 的相关组件上，但在需要快速搭建小型爬虫或进行轻量级数据抓取任务时仍然是一个不错的选择。",2,"2026-06-11 03:16:45","top_language"]