home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 1335870884

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1928#issuecomment-1335870884 https://api.github.com/repos/simonw/datasette/issues/1928 1335870884 IC_kwDOBm6k_c5Pn8Wk 9599 2022-12-02T21:19:58Z 2022-12-02T21:19:58Z OWNER But until I fix this issue: - https://github.com/simonw/datasette/issues/1927 I need to insert freshly scraped data like this: ```bash export ROWS=$( jq -n --argjson rows "$(cat simonwillison-net.json)" \ '{ "rows": $rows, "replace": true }' ) curl -X POST \ https://simon.datasette.cloud/data/hacker_news_posts/-/insert \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $DS_TOKEN" \ -d $ROWS ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1473481262  
Powered by Datasette · Queries took 1.992ms