를 형성하기 위해 액세스 http://de.selfhtml.org/javascript/objekte/anzeige/forms_method.htm크롤러 + 목구멍 예 :이 테스트를 위해 .... 나는 웹 사이트를 잡고, 다음 I 양식에 액세스하려고</p> <p>심포니 2.1 크롤러를 처리하기 위해 PHP를 목구멍 클라이언트를 사용하고
$url = 'http://de.selfhtml.org/javascript/objekte/anzeige/forms_method.htm';
$client = new Client($url);
$request = $client->get();
$request->getCurlOptions()->set(CURLOPT_SSL_VERIFYHOST, false);
$request->getCurlOptions()->set(CURLOPT_SSL_VERIFYPEER, false);
$response = $request->send();
$body = $response->getBody(true);
$crawler = new Crawler($body);
$filter = $crawler->selectButton('submit')->form();
var_dump($filter);die();
여기 형성하지만 난 예외를 얻을 :
현재 노드 목록이 비어 있습니다.
은 그래서 나는 가지, 그것은 화면을 긁어하고 웹 라이브러리가 이미 목구멍 (사용되는 도구 위에 구축 크롤링, Goutte를 사용해보십시오 형태를