Title: except ParseError: Invalid format string · Issue #10 · glassnode/glassnode-api-python-client · GitHub
Open Graph Title: except ParseError: Invalid format string · Issue #10 · glassnode/glassnode-api-python-client
X Title: except ParseError: Invalid format string · Issue #10 · glassnode/glassnode-api-python-client
Description: import os GLASSNODE_CLIENT_PATH = os.getenv('GLASSNODE_CLIENT_PATH', '/tmp/gn') import sys sys.path.append(GLASSNODE_CLIENT_PATH) surpress warnings import warnings warnings.filterwarnings('ignore') from glassnode import GlassnodeClient i...
Open Graph Description: import os GLASSNODE_CLIENT_PATH = os.getenv('GLASSNODE_CLIENT_PATH', '/tmp/gn') import sys sys.path.append(GLASSNODE_CLIENT_PATH) surpress warnings import warnings warnings.filterwarnings('ignore')...
X Description: import os GLASSNODE_CLIENT_PATH = os.getenv('GLASSNODE_CLIENT_PATH', '/tmp/gn') import sys sys.path.append(GLASSNODE_CLIENT_PATH) surpress warnings import warnings warnings.filterwa...
Opengraph URL: https://github.com/glassnode/glassnode-api-python-client/issues/10
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"except ParseError: Invalid format string","articleBody":"import os\r\n\r\nGLASSNODE_CLIENT_PATH = os.getenv('GLASSNODE_CLIENT_PATH', '/tmp/gn')\r\n\r\nimport sys\r\nsys.path.append(GLASSNODE_CLIENT_PATH)\r\n\r\n# surpress warnings\r\nimport warnings\r\nwarnings.filterwarnings('ignore')\r\n\r\nfrom glassnode import GlassnodeClient\r\nimport matplotlib.pyplot as plt\r\nimport pandas as pd\r\n\r\n# instantiate glassnode client\r\ngn = GlassnodeClient()\r\n\r\nGLASSNODE_API_KEY = 'MY_API' \u003c\u003c\u003c---\r\ngn.set_api_key(GLASSNODE_API_KEY)\r\n\r\nnew_addrs = gn.get('https://api.glassnode.com/v1/metrics/addresses/new_non_zero_count',s='2018-01-01')\r\n\r\n\r\n---------------------------------------------------------------------------\r\nValueError Traceback (most recent call last)\r\nd:\\PythonProjects\\glassnode-api-python-client\\[1](vscode-notebook-cell:/d%3A/PythonProjects/glassnode-api-python-client/1_glassnode.ipynb#ch0000003?line=0)_glassnode.ipynb Cell 2' in \u003cmodule\u003e\r\n----\u003e 1 new_addrs = gn.get('https://api.glassnode.com/v1/metrics/addresses/new_non_zero_count',s='2018-01-01')\r\n\r\nFile d:\\PythonProjects\\glassnode-api-python-client\\glassnode.py:28, in GlassnodeClient.get(self, url, a, i, c, s, u)\r\n [26](file:///d%3A/PythonProjects/glassnode-api-python-client/glassnode.py?line=25) if s is not None:\r\n [27](file:///d%3A/PythonProjects/glassnode-api-python-client/glassnode.py?line=26) try:\r\n---\u003e [28](file:///d%3A/PythonProjects/glassnode-api-python-client/glassnode.py?line=27) p['s'] = iso8601.parse_date(s).strftime('%s')\r\n [29](file:///d%3A/PythonProjects/glassnode-api-python-client/glassnode.py?line=28) except ParseError:\r\n [30](file:///d%3A/PythonProjects/glassnode-api-python-client/glassnode.py?line=29) p['s'] = s\r\n\r\nValueError: Invalid format string","author":{"url":"https://github.com/demetrius2017","@type":"Person","name":"demetrius2017"},"datePublished":"2022-03-24T09:32:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/10/glassnode-api-python-client/issues/10"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:faa5b9b3-9e51-e643-7865-e93e8667dca9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A60:9FE98:1D6167B:2895E87:6A4ECEF3 |
| html-safe-nonce | fc10d111bc71b0d933595f9d4f64bf769e9a527672251f4c4b0e7c4f867c433f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTYwOjlGRTk4OjFENjE2N0I6Mjg5NUU4Nzo2QTRFQ0VGMyIsInZpc2l0b3JfaWQiOiI3NzQ2MzI2MTUyOTg2NDk4NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 16761bb32e5bba45a8f0691f4a720007a0d3f640a598651400717dfce696b42d |
| hovercard-subject-tag | issue:1179243439 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/glassnode/glassnode-api-python-client/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf528d48a68d8911b9c3a7e80a9a3394eba298c5e804c23a871bb6731492c913/glassnode/glassnode-api-python-client/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf528d48a68d8911b9c3a7e80a9a3394eba298c5e804c23a871bb6731492c913/glassnode/glassnode-api-python-client/issues/10 |
| og:image:alt | import os GLASSNODE_CLIENT_PATH = os.getenv('GLASSNODE_CLIENT_PATH', '/tmp/gn') import sys sys.path.append(GLASSNODE_CLIENT_PATH) surpress warnings import warnings warnings.filterwarnings('ignore')... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | demetrius2017 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/glassnode/glassnode-api-python-client git https://github.com/glassnode/glassnode-api-python-client.git |
| octolytics-dimension-user_id | 40865666 |
| octolytics-dimension-user_login | glassnode |
| octolytics-dimension-repository_id | 243736354 |
| octolytics-dimension-repository_nwo | glassnode/glassnode-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 243736354 |
| octolytics-dimension-repository_network_root_nwo | glassnode/glassnode-api-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width