{"action":"created","issue":{"url":"https://api.github.com/repos/libextract/libextract/issues/10","labels_url":"https://api.github.com/repos/libextract/libextract/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/libextract/libextract/issues/10/comments","events_url":"https://api.github.com/repos/libextract/libextract/issues/10/events","html_url":"https://github.com/libextract/libextract/issues/10","id":67275377,"number":10,"title":"Presentation of extracted tabular data","user":{"login":"rodricios","id":6603965,"avatar_url":"https://avatars.githubusercontent.com/u/6603965?v=3","gravatar_id":"","url":"https://api.github.com/users/rodricios","html_url":"https://github.com/rodricios","followers_url":"https://api.github.com/users/rodricios/followers","following_url":"https://api.github.com/users/rodricios/following{/other_user}","gists_url":"https://api.github.com/users/rodricios/gists{/gist_id}","starred_url":"https://api.github.com/users/rodricios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodricios/subscriptions","organizations_url":"https://api.github.com/users/rodricios/orgs","repos_url":"https://api.github.com/users/rodricios/repos","events_url":"https://api.github.com/users/rodricios/events{/privacy}","received_events_url":"https://api.github.com/users/rodricios/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libextract/libextract/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-09T03:57:16Z","updated_at":"2015-04-09T04:10:14Z","closed_at":null,"body":"Currently, one of the possible, human readable way of viewing the extracted \"tables\", one should do the following: \r\n\r\n```python\r\nfrom libextract import extract\r\nfrom libextract.strategies import TABULAR\r\nfrom libextract.html.tabular import filter_tags\r\n\r\nfrom lxml.html import open_in_browser\r\nfrom requests import get\r\n\r\nreddit = get(\"http://reddit.com\")\r\nstrat = TABULAR + (filter_tags,)\r\n\r\ntabs = extract(reddit.content, strategy=strat)\r\ntabs = list(tabs)\r\nopen_in_browser(tabs[0])\r\n```\r\n\r\nAny other ideas on how else we should present it? \r\n\r\nEdit: one very cool way is following import.io's approach as an [example](https://magic.import.io/?site=http:%2F%2Fwww.ikea.com%2Fus%2Fen%2Fsearch%2F%3Fquery%3Dchair); this means classifying by the node's \"class\" values. "},"comment":{"url":"https://api.github.com/repos/libextract/libextract/issues/comments/91110617","html_url":"https://github.com/libextract/libextract/issues/10#issuecomment-91110617","issue_url":"https://api.github.com/repos/libextract/libextract/issues/10","id":91110617,"user":{"login":"rodricios","id":6603965,"avatar_url":"https://avatars.githubusercontent.com/u/6603965?v=3","gravatar_id":"","url":"https://api.github.com/users/rodricios","html_url":"https://github.com/rodricios","followers_url":"https://api.github.com/users/rodricios/followers","following_url":"https://api.github.com/users/rodricios/following{/other_user}","gists_url":"https://api.github.com/users/rodricios/gists{/gist_id}","starred_url":"https://api.github.com/users/rodricios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodricios/subscriptions","organizations_url":"https://api.github.com/users/rodricios/orgs","repos_url":"https://api.github.com/users/rodricios/repos","events_url":"https://api.github.com/users/rodricios/events{/privacy}","received_events_url":"https://api.github.com/users/rodricios/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T04:10:14Z","updated_at":"2015-04-09T04:10:14Z","body":"Gotcha, but arguably, the ARTICLE_TEXT is a presentation-layer method. Should we provide the same text-type output for tabular extraction? \r\n\r\nThis may also help \"selling\" the library as an extraction tool, as I don't think it's convincing enough to just say, \"hey, here's the most frequent tag.\" \r\n\r\nIt could even be a simple conversion of the html-node parameters to json:\r\n\r\n```\r\n{ \r\n  \"tag\": \"div\", \r\n  \"class\": \"table-data\",\r\n  \"inner_text\": \"blah blah blah\" \r\n  ...\r\n}\r\n```"}}