{"action":"created","issue":{"url":"https://api.github.com/repos/virkillz/php-price-crawler/issues/1","repository_url":"https://api.github.com/repos/virkillz/php-price-crawler","labels_url":"https://api.github.com/repos/virkillz/php-price-crawler/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/virkillz/php-price-crawler/issues/1/comments","events_url":"https://api.github.com/repos/virkillz/php-price-crawler/issues/1/events","html_url":"https://github.com/virkillz/php-price-crawler/issues/1","id":208007690,"node_id":"MDU6SXNzdWUyMDgwMDc2OTA=","number":1,"title":"Craw data when click to link.","user":{"login":"vanloc0301","id":4168981,"node_id":"MDQ6VXNlcjQxNjg5ODE=","avatar_url":"https://avatars2.githubusercontent.com/u/4168981?v=4","gravatar_id":"","url":"https://api.github.com/users/vanloc0301","html_url":"https://github.com/vanloc0301","followers_url":"https://api.github.com/users/vanloc0301/followers","following_url":"https://api.github.com/users/vanloc0301/following{/other_user}","gists_url":"https://api.github.com/users/vanloc0301/gists{/gist_id}","starred_url":"https://api.github.com/users/vanloc0301/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanloc0301/subscriptions","organizations_url":"https://api.github.com/users/vanloc0301/orgs","repos_url":"https://api.github.com/users/vanloc0301/repos","events_url":"https://api.github.com/users/vanloc0301/events{/privacy}","received_events_url":"https://api.github.com/users/vanloc0301/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-16T03:51:42Z","updated_at":"2018-08-07T08:40:46Z","closed_at":null,"author_association":"NONE","body":"I want to get the content of a news after the click to this link.\r\n\r\nSo, I tried with my code (this example using Goutte):\r\n\r\n```\r\n$crawler = $this->client->request('GET', 'http://giaitri.vnexpress.net');\r\n\r\n$news = $crawler->filter('#news_home > li');\r\n$link = null;\r\n$news = $crawler->filter('#news_home > li')->each(function($node) {\r\n    $link = $node->filter('.txt_link');\r\n    $child_news = $this->client->click($link->link());\r\n    print_r($child_news->filter('#left_calculator')->text());\r\n    if(!empty($child_news->filter('#left_calculator'))) {\r\n        return [\r\n        'title' => $link->text(),\r\n        'link'  => $link->link()->getUri(),\r\n        'thumbnail' => $node->filter('.txt_link img')->attr('src'),\r\n        'description' => trim($node->filter('.news_lead')->text()),\r\n        'content' => trim($child_news->filter('#left_calculator')->text()),\r\n        ];\r\n    }\r\n});\r\n```\r\n\r\n`print_r($child_news->filter('#left_calculator')->text())` have values.\r\n\r\nBut in an array:\r\n\r\n`'content' => trim($child_news->filter('#left_calculator')->text()),`\r\n\r\nI found in your project only get the content of URL.\r\n\r\nIn my case, I add an URL of news. This URL contain much news. I will scan it and be scrapping all content of a link.\r\n\r\nNote: you should add the new database. \r\nYour database lost table `settings`"},"comment":{"url":"https://api.github.com/repos/virkillz/php-price-crawler/issues/comments/410980704","html_url":"https://github.com/virkillz/php-price-crawler/issues/1#issuecomment-410980704","issue_url":"https://api.github.com/repos/virkillz/php-price-crawler/issues/1","id":410980704,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDk4MDcwNA==","user":{"login":"virkillz","id":9361179,"node_id":"MDQ6VXNlcjkzNjExNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/9361179?v=4","gravatar_id":"","url":"https://api.github.com/users/virkillz","html_url":"https://github.com/virkillz","followers_url":"https://api.github.com/users/virkillz/followers","following_url":"https://api.github.com/users/virkillz/following{/other_user}","gists_url":"https://api.github.com/users/virkillz/gists{/gist_id}","starred_url":"https://api.github.com/users/virkillz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virkillz/subscriptions","organizations_url":"https://api.github.com/users/virkillz/orgs","repos_url":"https://api.github.com/users/virkillz/repos","events_url":"https://api.github.com/users/virkillz/events{/privacy}","received_events_url":"https://api.github.com/users/virkillz/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T08:40:46Z","updated_at":"2018-08-07T08:40:46Z","author_association":"OWNER","body":"Noted. This project is no longer maintained. "}}
{"actor":{"display_login":"virkillz"}}