{"action":"closed","issue":{"url":"https://api.github.com/repos/fimad/scalpel/issues/48","repository_url":"https://api.github.com/repos/fimad/scalpel","labels_url":"https://api.github.com/repos/fimad/scalpel/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/fimad/scalpel/issues/48/comments","events_url":"https://api.github.com/repos/fimad/scalpel/issues/48/events","html_url":"https://github.com/fimad/scalpel/issues/48","id":183297910,"node_id":"MDU6SXNzdWUxODMyOTc5MTA=","number":48,"title":"Figure out story for queries that span multiple sub-trees.","user":{"login":"fimad","id":409115,"node_id":"MDQ6VXNlcjQwOTExNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/409115?v=4","gravatar_id":"","url":"https://api.github.com/users/fimad","html_url":"https://github.com/fimad","followers_url":"https://api.github.com/users/fimad/followers","following_url":"https://api.github.com/users/fimad/following{/other_user}","gists_url":"https://api.github.com/users/fimad/gists{/gist_id}","starred_url":"https://api.github.com/users/fimad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fimad/subscriptions","organizations_url":"https://api.github.com/users/fimad/orgs","repos_url":"https://api.github.com/users/fimad/repos","events_url":"https://api.github.com/users/fimad/events{/privacy}","received_events_url":"https://api.github.com/users/fimad/received_events","type":"User","site_admin":false},"labels":[{"id":160958775,"node_id":"MDU6TGFiZWwxNjA5NTg3NzU=","url":"https://api.github.com/repos/fimad/scalpel/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":1231170187,"node_id":"MDU6TGFiZWwxMjMxMTcwMTg3","url":"https://api.github.com/repos/fimad/scalpel/labels/fixed%20at%20head","name":"fixed at head","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/fimad/scalpel/milestones/3","html_url":"https://github.com/fimad/scalpel/milestone/3","labels_url":"https://api.github.com/repos/fimad/scalpel/milestones/3/labels","id":2073050,"node_id":"MDk6TWlsZXN0b25lMjA3MzA1MA==","number":3,"title":"0.6.0","description":"More ambitious API changes, possibly backwards incompatible. Fallout from 0.4.0.","creator":{"login":"fimad","id":409115,"node_id":"MDQ6VXNlcjQwOTExNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/409115?v=4","gravatar_id":"","url":"https://api.github.com/users/fimad","html_url":"https://github.com/fimad","followers_url":"https://api.github.com/users/fimad/followers","following_url":"https://api.github.com/users/fimad/following{/other_user}","gists_url":"https://api.github.com/users/fimad/gists{/gist_id}","starred_url":"https://api.github.com/users/fimad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fimad/subscriptions","organizations_url":"https://api.github.com/users/fimad/orgs","repos_url":"https://api.github.com/users/fimad/repos","events_url":"https://api.github.com/users/fimad/events{/privacy}","received_events_url":"https://api.github.com/users/fimad/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":8,"state":"open","created_at":"2016-10-17T00:37:25Z","updated_at":"2019-02-18T05:16:13Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-10-16T22:56:07Z","updated_at":"2019-02-18T05:16:14Z","closed_at":"2019-02-18T05:16:13Z","author_association":"OWNER","body":"Right now scalpel makes the assumption that an HTML document is a tree (possibly a malformed one) and that scraping involves selecting one or more sub-trees and extracting (the same) data from each sub-tree.\n\nThere are use cases (#41, #45) that don't fit into this model but would nice to support.\n\nThis issue is for brainstorming API/architecture changes that would support these types of queries.\n#41 could be solved by extending selectors to allow jumping between sibling sub-trees, maybe something that looked like:\n\n``` html\n<p class=\"something\">Here</p>\n<p>Other stuff that matters</p>\n```\n\n``` haskell\nchroot \"p\" @: [hasClass \"something\"] $ do\n  here <- text AnyTag\n  otherStuff <- text $ rightSibling \"p\"\n```\n\nThe problem with this is that it doesn't really extend to more complicated scenarios like those #45 which involves collecting a sequence of siblings until a certain condition is met.\n"}}
{"actor":{"display_login":"fimad"}}