You are on page 1of 4

24.06.2020 г. Airtable.

ipynb - Colaboratory

import requests
import json

!pip install airtable-python-wrapper

Requirement already satisfied: airtable-python-wrapper in /usr/local/lib/python3.6/dist-packages (0.12.0)


Requirement already satisfied: requests>=2 in /usr/local/lib/python3.6/dist-packages (from airtable-python-wrapper) (2.
Requirement already satisfied: six>=1.10 in /usr/local/lib/python3.6/dist-packages (from airtable-python-wrapper) (1.12
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests>=2->airta
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests>=2->airta
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests>=2->airtable-pyt
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests>=2->airtable

from airtable import Airtable

base_key = 'appNdyZKEcTdlFEnE'
table_name = 'Table 1'
api_key='keyFA9ZG84IPInddW'

table1 = Airtable(base_key, table_name, api_key)

table1.get_all()

https://colab.research.google.com/drive/16aOZMldt4ZRXRo8hoftViSuQfe3kpaUB#scrollTo=7tldYbwD8sTd&printMode=true 1/4
24.06.2020 г. Airtable.ipynb - Colaboratory

[{'createdTime': '2017-03-28T07:32:07.000Z',
'fields': {'Attachments': [{'filename': 'Spare-Parts-Catalog.pdf',
'id': 'attYb5hh3M3sNImMS',
'size': 28341454,
'thumbnails': {'large': {'height': 663,
'url': 'https://dl.airtable.com/attYb5hh3M3sNImMS-512x663.png',
'width': 512},
'small': {'height': 36,
'url': 'https://dl.airtable.com/attYb5hh3M3sNImMS-28x36.png',
'width': 28}},
'type': 'application/pdf',
'url': 'https://dl.airtable.com/bO0VhdXSH2MeFdTKPbCz_Spare-Parts-Catalog.pdf'}],
'Name': 'walterscheid',
'Notes': 'За Евгени'},
'id': 'recFwtpoQYaYX6i5o'},
{'createdTime': '2017-04-25T15:48:25.000Z',
'fields': {'Attachments': [{'filename': '9b6c9fc2f561ede2fcacaf8de6fdf05d.pdf',
'id': 'attCkwM4kMDJbWuRp',
'size': 38815879,
'thumbnails': {'large': {'height': 663,
'url': 'https://dl.airtable.com/attCkwM4kMDJbWuRp-512x663.png',
'width': 512},
'small': {'height': 36,
'url': 'https://dl.airtable.com/attCkwM4kMDJbWuRp-28x36.png',
'width': 28}},
'type': 'application/pdf',
'url': 'https://dl.airtable.com/TqyU7luSSasXmXASgPqA_9b6c9fc2f561ede2fcacaf8de6fdf05d.pdf'},
{'filename': 'image-0-02-05.jpg',
'id': 'att8KnkPZs2d1qkFW',
'size': 130682,
'thumbnails': {'full': {'height': 1280,
'url': 'https://dl.airtable.com/HawPAd57SxiooijgkJZ8_full_image-0-02-05.jpg',
'width': 720},
'large': {'height': 910,
'url': 'https://dl.airtable.com/vgEIuPzkQDiJbGnjhco8_large_image-0-02-05.jpg',
'width': 512},
'small': {'height': 36,
'url': 'https://dl.airtable.com/5M6H7MRfW20eF6hD1W9w_small_image-0-02-05.jpg',
'width': 20}},
'type': 'image/jpeg',
'url': 'https://dl.airtable.com/9tyiqPOhQWmAc8oRY23j_image-0-02-05.jpg'}],
'Name':
dir(table1) 'SERIES NEF TIER 4i',
'Notes': 'Нова машина божо'},
https://colab.research.google.com/drive/16aOZMldt4ZRXRo8hoftViSuQfe3kpaUB#scrollTo=7tldYbwD8sTd&printMode=true 2/4
24.06.2020 г. Airtable.ipynb - Colaboratory
'id': 'recdWKPp3Zej7KyXJ'},
['API_BASE_URL',
{'createdTime': '2017-05-10T10:21:02.000Z',
'API_LIMIT',
'fields': {'Attachments': [{'filename': 'ClPlayer-Platinum-1.3.7.sanet.cd.apk',
'API_URL',
'id': 'attKPo4peKd1kldPi',
'VERSION',
'size': 46457904,
'__class__',
'type': 'application/vnd.android.package-archive',
'__delattr__',
'url': 'https://dl.airtable.com/VyuvgzNiQCO7fry3XrFN_ClPlayer-Platinum-1.3.7.sanet.cd.apk'}],
'__dict__',
'Name': 'Android Cloud Player',
'__dir__',
'Notes': 'ClPlayer-Platinum-1.3.7.sanet.cd.apk'},
'__doc__',
'id': 'recz4KE0vAZiAscMZ'}]
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_batch_request',
'_delete',
'_get',
'_patch',
'_post',
'_process_params',
'_process_response',
'_put',
'_request',
'batch_delete',
'batch_insert',
'delete',
'delete_by_field',
https://colab.research.google.com/drive/16aOZMldt4ZRXRo8hoftViSuQfe3kpaUB#scrollTo=7tldYbwD8sTd&printMode=true 3/4
24.06.2020 г. Airtable.ipynb - Colaboratory
'get',
'get_all',
'get_iter',
'insert',
'match',
'mirror',
'record_url',
'replace',
'replace_by_field',
'search',
'session',
'table_name',
'update',
'update_by_field',
'url_table']

https://colab.research.google.com/drive/16aOZMldt4ZRXRo8hoftViSuQfe3kpaUB#scrollTo=7tldYbwD8sTd&printMode=true 4/4

You might also like