Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
837 changes: 837 additions & 0 deletions .ipynb_checkpoints/Scavenger3-checkpoint.ipynb

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion challenge-1.py

This file was deleted.

6 changes: 6 additions & 0 deletions your-code/.ipynb_checkpoints/Scavenger1-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
142 changes: 142 additions & 0 deletions your-code/.ipynb_checkpoints/Scavenger2-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "282d61d4-13c7-415d-8e66-943fe106f986",
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"username = 'SebastianHerran'\n",
"token = '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'"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "69e52ec4-d89b-4719-a6b8-91a8d63e5928",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"respuesta2 = requests.get('https://api.github.com/repos/ta-data-mexpt/data-labs/commits?since=2021-09-09T00:00:00-05:00')\n",
"data2 = respuesta2.json()\n",
"data2"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "b31e3023-6908-49e3-b975-30bfdbbc0b99",
"metadata": {},
"outputs": [],
"source": [
"respuesta = requests.get('https://api.github.com/repos/ta-data-mexpt/data-labs/commits')\n",
"data = respuesta.json()"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "637f8c58-e0e6-4674-852d-c595dae6573b",
"metadata": {},
"outputs": [],
"source": [
"commits_dates = [x['commit']['committer']['date'] for x in data]"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "f136c164-c244-4f12-95b0-ecf6f02c9ba8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['2019-08-30T15:19:09Z',\n",
" '2019-08-29T14:35:22Z',\n",
" '2019-08-25T17:39:10Z',\n",
" '2019-08-25T17:36:06Z',\n",
" '2019-08-23T14:43:36Z',\n",
" '2019-08-07T15:56:23Z',\n",
" '2019-08-07T15:41:23Z',\n",
" '2019-08-07T15:41:02Z',\n",
" '2019-07-03T07:37:34Z',\n",
" '2019-07-01T13:53:01Z',\n",
" '2019-07-01T13:52:37Z',\n",
" '2019-07-01T13:51:15Z',\n",
" '2019-07-01T13:50:51Z',\n",
" '2019-07-01T13:50:26Z',\n",
" '2019-07-01T13:49:32Z',\n",
" '2019-06-21T20:09:01Z',\n",
" '2019-06-21T20:02:07Z',\n",
" '2019-06-18T16:03:30Z',\n",
" '2019-06-17T19:26:15Z',\n",
" '2019-06-13T14:37:07Z',\n",
" '2019-06-13T14:36:37Z',\n",
" '2019-06-10T15:46:08Z',\n",
" '2019-06-10T15:40:17Z',\n",
" '2019-06-07T21:13:08Z',\n",
" '2019-06-07T17:09:26Z',\n",
" '2019-06-07T17:08:40Z',\n",
" '2019-06-06T04:23:06Z',\n",
" '2019-06-05T21:39:56Z',\n",
" '2019-06-05T20:41:07Z',\n",
" '2019-06-05T20:37:06Z']"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"commits_dates #No hay commits recientes, por eso la lista con el 'since' salió vacía"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "85e4785e-d9df-4167-bffd-b330fcbd3b4a",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading