{"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279598878", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279598878, "node_id": "IC_kwDOBm6k_c5MRSEe", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T23:51:46Z", "updated_at": "2022-10-14T23:51:46Z", "author_association": "OWNER", "body": "Blogged about this here: https://simonwillison.net/2022/Oct/14/automating-screenshots/", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279427618", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279427618, "node_id": "IC_kwDOBm6k_c5MQoQi", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T20:25:45Z", "updated_at": "2022-10-14T20:25:45Z", "author_association": "OWNER", "body": "Extracted a TIL: https://til.simonwillison.net/shot-scraper/subset-of-table-columns", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279415365", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279415365, "node_id": "IC_kwDOBm6k_c5MQlRF", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T20:11:55Z", "updated_at": "2022-10-14T20:11:55Z", "author_association": "OWNER", "body": "Twitter thread about this issue: https://twitter.com/simonw/status/1581012617526595584", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279406134", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279406134, "node_id": "IC_kwDOBm6k_c5MQjA2", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T20:01:13Z", "updated_at": "2022-10-14T20:01:13Z", "author_association": "OWNER", "body": "Here's the YAML I added to https://github.com/simonw/datasette-screenshots/blob/main/shots.yml for this issue:\r\n\r\n```yaml\r\n- url: https://register-of-members-interests.datasettes.com/regmem/items?_search=hamper&_sort_desc=date\r\n height: 585\r\n width: 960\r\n output: regmem-search.png\r\n- url: https://register-of-members-interests.datasettes.com/regmem/items?_search=hamper\r\n selector: \"#export\"\r\n output: advanced-export.png\r\n padding: 10\r\n- url: https://congress-legislators.datasettes.com/legislators/legislator_terms?_facet=type&_facet=party&_facet=state&_facet_size=10\r\n selectors_all:\r\n - .suggested-facets a\r\n - tr:not(tr:nth-child(n+4)) td:not(:nth-child(n+11))\r\n padding: 10\r\n output: faceting-details.png\r\n- url: https://latest.datasette.io/fixtures/binary_data\r\n selector: table\r\n javascript: |-\r\n Array.from(\r\n document.querySelectorAll('tr:nth-child(n+3)'),\r\n el => el.parentNode.removeChild(el)\r\n );\r\n padding: 10\r\n output: binary-data.png\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279405429", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279405429, "node_id": "IC_kwDOBm6k_c5MQi11", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T20:00:26Z", "updated_at": "2022-10-14T20:00:26Z", "author_association": "OWNER", "body": "New images are now live on these pages:\r\n- https://docs.datasette.io/en/latest/csv_export.html\r\n- https://docs.datasette.io/en/latest/binary_data.html\r\n- https://docs.datasette.io/en/latest/facets.html\r\n- https://docs.datasette.io/en/latest/full_text_search.html\r\n- https://docs.datasette.io/en/latest/changelog.html#v0-23 (was a duplicate of the advanced export image)", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279392717", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279392717, "node_id": "IC_kwDOBm6k_c5MQfvN", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T19:44:44Z", "updated_at": "2022-10-14T19:45:54Z", "author_association": "OWNER", "body": "OK, the URLs to use in the docs are:\r\n\r\n* https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/advanced-export.png (retina)\r\n* https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/regmem-search.png\r\n* https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/binary-data.png (retina)\r\n* https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/faceting-details.png\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279349314", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279349314, "node_id": "IC_kwDOBm6k_c5MQVJC", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:50:42Z", "updated_at": "2022-10-14T19:34:37Z", "author_association": "OWNER", "body": "I'm going to link the documentation screenshots directly to the images in the https://github.com/simonw/datasette-screenshots repository - but I don't want those images to reflect `main` when the documentation may reflect a specific version.\r\n\r\nSo I'm going to start tagging releases of `datasette-screenshots` so I can get permanent URLs to those images.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279383121", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279383121, "node_id": "IC_kwDOBm6k_c5MQdZR", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T19:33:49Z", "updated_at": "2022-10-14T19:33:49Z", "author_association": "OWNER", "body": "I'm going to tag `datasette-screenshots` with the current Datasette version, `0.62`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279311487", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279311487, "node_id": "IC_kwDOBm6k_c5MQL5_", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:06:53Z", "updated_at": "2022-10-14T19:33:24Z", "author_association": "OWNER", "body": "I just spotted some other out-dated screenshots in the `docs/` directory:\r\n\r\n- [x] [advanced_export.png](https://github.com/simonw/datasette/blob/main/docs/advanced_export.png \"advanced_export.png\")\r\n- [x] [binary_data.png](https://github.com/simonw/datasette/blob/main/docs/binary_data.png \"binary_data.png\")\r\n- [x] [facets.png](https://github.com/simonw/datasette/blob/main/docs/facets.png \"facets.png\")\r\n- [x] [full_text_search.png](https://github.com/simonw/datasette/blob/main/docs/full_text_search.png \"full_text_search.png\")\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279382674", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279382674, "node_id": "IC_kwDOBm6k_c5MQdSS", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T19:33:16Z", "updated_at": "2022-10-14T19:33:16Z", "author_association": "OWNER", "body": "That's the last two screenshots:\r\n\r\n\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279348239", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279348239, "node_id": "IC_kwDOBm6k_c5MQU4P", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:49:22Z", "updated_at": "2022-10-14T18:49:22Z", "author_association": "OWNER", "body": "This works:\r\n```\r\nshot-scraper\r\n 'https://congress-legislators.datasettes.com/legislators/legislator_terms?_facet=type&_facet=party&_facet=state&_facet_size=10' \\\r\n -s '.suggested-facets a' \\\r\n --selector-all 'tr:not(tr:nth-child(n+4)) td:not(:nth-child(n+11))' \\\r\n -p 10\r\n```\r\n![congress-legislators-datasettes-com-legislators-legislator_terms 6](https://user-images.githubusercontent.com/9599/195919422-97616694-3ec0-4e05-afc2-c509275c767c.png)\r\n\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279339124", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279339124, "node_id": "IC_kwDOBm6k_c5MQSp0", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:38:22Z", "updated_at": "2022-10-14T18:42:58Z", "author_association": "OWNER", "body": "This seems to get every table cell in that table for the first 3 rows and the columns up to `party`:\r\n\r\n document.querySelectorAll('tr:not(:nth-child(n+4)) td:not(:nth-child(n+10))')", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279334694", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279334694, "node_id": "IC_kwDOBm6k_c5MQRkm", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:33:41Z", "updated_at": "2022-10-14T18:34:32Z", "author_association": "OWNER", "body": "I'm going to use this page for the facets screenshot: https://congress-legislators.datasettes.com/legislators/legislator_terms?_facet=type&_facet=party&_facet=state&_facet_size=10\r\n\r\nTrying for this bit:\r\n\r\n\"image\"\r\n\r\nWhich incorporates `.suggested-facets` but also the first 3 rows and 10 columns of the table, I wonder if I can specify that in a single selector?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279325685", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279325685, "node_id": "IC_kwDOBm6k_c5MQPX1", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:23:22Z", "updated_at": "2022-10-14T18:23:22Z", "author_association": "OWNER", "body": "Here's the new advanced export image:\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279325003", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279325003, "node_id": "IC_kwDOBm6k_c5MQPNL", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:22:35Z", "updated_at": "2022-10-14T18:22:35Z", "author_association": "OWNER", "body": "So:\r\n```\r\nshot-scraper 'https://latest.datasette.io/fixtures/binary_data' \\\r\n -j \"Array.from(document.querySelectorAll('tr:nth-child(n+3)'), el => el.parentNode.removeChild(el));\" \\\r\n -s table -p 10\r\n```\r\n![latest-datasette-io-fixtures-binary_data 1](https://user-images.githubusercontent.com/9599/195915092-be81db43-5672-4375-bd66-4316211b1afc.png)\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279323714", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279323714, "node_id": "IC_kwDOBm6k_c5MQO5C", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:21:03Z", "updated_at": "2022-10-14T18:21:03Z", "author_association": "OWNER", "body": "For this image:\r\n\r\n\r\n\r\nhttps://latest.datasette.io/fixtures/binary_data has an extra row these days:\r\n\r\n\"image\"\r\n\r\nThis deletes every row past the first two (first three including the header row):\r\n```javascipt\r\nArray.from(document.querySelectorAll('tr:nth-child(n+3)'), el => el.parentNode.removeChild(el));\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279314400", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279314400, "node_id": "IC_kwDOBm6k_c5MQMng", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:10:07Z", "updated_at": "2022-10-14T18:13:36Z", "author_association": "OWNER", "body": "For the advanced export one:\r\n\r\n shot-scraper 'https://register-of-members-interests.datasettes.com/regmem/items?_search=hamper' -s '#export' -p 10\r\n\r\nProduces:\r\n\r\n![register-of-members-interests-datasettes-com-regmem-items 2](https://user-images.githubusercontent.com/9599/195913614-448557aa-5ec6-4a83-98cf-8837d3117204.png)\r\n\r\nCurrent image is:\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1844#issuecomment-1279316670", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1844", "id": 1279316670, "node_id": "IC_kwDOBm6k_c5MQNK-", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-14T18:12:39Z", "updated_at": "2022-10-14T18:12:39Z", "author_association": "OWNER", "body": "New screenshot of FTS, from https://register-of-members-interests.datasettes.com/regmem/items?_search=hamper&_sort_desc=date\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1409679008, "label": "Update screenshots in documentation to match latest designs"}, "performed_via_github_app": null}