{"action":"opened","issue":{"url":"https://api.github.com/repos/xparse/ElementFinder/issues/69","repository_url":"https://api.github.com/repos/xparse/ElementFinder","labels_url":"https://api.github.com/repos/xparse/ElementFinder/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/xparse/ElementFinder/issues/69/comments","events_url":"https://api.github.com/repos/xparse/ElementFinder/issues/69/events","html_url":"https://github.com/xparse/ElementFinder/issues/69","id":250530289,"number":69,"title":"Create extractors and simplify classes","user":{"login":"funivan","id":425208,"avatar_url":"https://avatars3.githubusercontent.com/u/425208?v=4","gravatar_id":"","url":"https://api.github.com/users/funivan","html_url":"https://github.com/funivan","followers_url":"https://api.github.com/users/funivan/followers","following_url":"https://api.github.com/users/funivan/following{/other_user}","gists_url":"https://api.github.com/users/funivan/gists{/gist_id}","starred_url":"https://api.github.com/users/funivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funivan/subscriptions","organizations_url":"https://api.github.com/users/funivan/orgs","repos_url":"https://api.github.com/users/funivan/repos","events_url":"https://api.github.com/users/funivan/events{/privacy}","received_events_url":"https://api.github.com/users/funivan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-16T07:04:05Z","updated_at":"2017-08-16T07:04:05Z","closed_at":null,"body":"Maybe it would be better to create some Extractors. For example\r\n```php\r\n#1 Key Value method\r\nElementFInder::keyValue($keyExpression, $valueExpression)\r\n(new KeyValueExtractor($page))->extract($keyExpression, $valueExpression)\r\n\r\n#2. Form Helper convert to class\r\n(new FormDataExtractor($page))->extract($expression)\r\n\r\n# 3 Attributes\r\nElementCollection::getAttributes \r\n(new AttributesExtractor())->extract($nodeList)\r\n\r\n#4 Make another way to extract outer content\r\nElementFInder::content($expression, true)\r\nStringCollection::createWithOuterContent(\\DomNodeList $items)\r\n\r\n#5 simple way to fetch values (if needed)\r\nElementFInder::value($expression, true)\r\nStringCollection::createWithValue(\\DomNodeList $items)\r\n\r\n\r\n```"}}
{"actor":{"display_login":"funivan"}}