home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 503233021 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • simonw 4

issue 1

  • Use better pagination (and implement progress bar) · 4 ✖

author_association 1

  • MEMBER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
605327655 https://github.com/dogsheep/pocket-to-sqlite/issues/1#issuecomment-605327655 https://api.github.com/repos/dogsheep/pocket-to-sqlite/issues/1 MDEyOklzc3VlQ29tbWVudDYwNTMyNzY1NQ== simonw 9599 2020-03-27T21:42:49Z 2020-03-27T21:42:49Z MEMBER

Or maybe it was because of the current Google Cloud outage? https://news.ycombinator.com/item?id=22706677

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use better pagination (and implement progress bar) 503233021  
605325897 https://github.com/dogsheep/pocket-to-sqlite/issues/1#issuecomment-605325897 https://api.github.com/repos/dogsheep/pocket-to-sqlite/issues/1 MDEyOklzc3VlQ29tbWVudDYwNTMyNTg5Nw== simonw 9599 2020-03-27T21:37:26Z 2020-03-27T21:38:37Z MEMBER

I keep getting 503 errors even though I appear to be staying within the rate limit: ``` {'Date': 'Fri, 27 Mar 2020 21:35:57 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Server': 'Apache/2.4.25 (Debian)', 'Content-Location': 'get.php', 'Vary': 'negotiate', 'TCN': 'choice', 'Set-Cookie': '...; httponly', 'X-Frame-Options': 'SAMEORIGIN', 'Status': '200 OK', 'X-Limit-Key-Limit': '10000', 'X-Limit-Key-Remaining': '9960', 'X-Limit-Key-Reset': '282', 'X-Source': 'Pocket', 'P3P': 'policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA PRE"'}

[##----------------------------------] 6% 06:49:27

{'Date': 'Fri, 27 Mar 2020 21:36:06 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Content-Length': '23', 'Connection': 'keep-alive', 'Server': 'Apache/2.4.25 (Debian)', 'Content-Location': 'get.php', 'Vary': 'negotiate', 'TCN': 'choice', 'Set-Cookie': '...', 'X-Frame-Options': 'SAMEORIGIN', 'X-Error': 'Pocket is currently under heavy load. Please wait a moment and try again.', 'X-Error-Code': '199', 'Status': '503 Service Unavailable', 'X-Source': 'Pocket', 'P3P': 'policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA PRE"'} ``` I'm going to try doing a few automatic retries any time I see a 503 error.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use better pagination (and implement progress bar) 503233021  
605316146 https://github.com/dogsheep/pocket-to-sqlite/issues/1#issuecomment-605316146 https://api.github.com/repos/dogsheep/pocket-to-sqlite/issues/1 MDEyOklzc3VlQ29tbWVudDYwNTMxNjE0Ng== simonw 9599 2020-03-27T21:09:15Z 2020-03-27T21:09:22Z MEMBER

For a progress bar I need to know how many total items there are.

I found an undocumented API for this! /v3/stats which returns: json { "count_list": 7394, "count_read": 1016, "count_unread": 6378, "status": 1 } I guessed this based on the documented v2 API: https://getpocket.com/api/v2_docs/#stats

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use better pagination (and implement progress bar) 503233021  
538847446 https://github.com/dogsheep/pocket-to-sqlite/issues/1#issuecomment-538847446 https://api.github.com/repos/dogsheep/pocket-to-sqlite/issues/1 MDEyOklzc3VlQ29tbWVudDUzODg0NzQ0Ng== simonw 9599 2019-10-07T05:41:17Z 2019-10-07T05:41:17Z MEMBER

Prototype code: python offset = 0 fetched = [] size = 500 while True: page = requests.get("https://getpocket.com/v3/get", { "consumer_key": consumer_key, "access_token": access_token, "sort": "oldest", "detailType": "complete", "count": size, "offset": offset, }).json() print(offset) fetched.append(page) offset += size if not len(page["list"]): break

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use better pagination (and implement progress bar) 503233021  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 29.702ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows