Biblioteka klienta interfejsów API Bloggera dla języka Python
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Na tej stronie znajdziesz informacje dla początkujących na temat korzystania z interfejsu Blogger API w wersji 3 za pomocą
i bibliotekę klienta interfejsów API Google do języka Python. Więcej informacji znajdziesz w tych zasobach:
Przykład
Aby łatwiej rozpocząć korzystanie z biblioteki klienta, zapoznaj się z przykładem z bloggera.
Instalowanie biblioteki klienta
Możesz użyć menedżera pakietów lub ręcznie pobrać i zainstalować bibliotekę klienta dla języka Python:
Instalacja zarządzana
Użyj pakietu pip lub setuptools do zarządzania instalacją. Najpierw konieczne może być uruchomienie programu sudo
.
Instalacja ręczna
- Pobierz najnowszą bibliotekę klienta dla języka Python
- Rozpakuj kod.
- Zainstaluj:
python setup.py install
App Engine
Biblioteki klienta dla języka Python nie są instalowane w środowisku wykonawczym App Engine Python, więc trzeba je skopiować do aplikacji, tak jak biblioteki innych dostawców.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["\u003cp\u003eThis page guides you on using the Google API Client Library for Python to interact with the Blogger API v3.\u003c/p\u003e\n"],["\u003cp\u003eSystem requirements include Linux, macOS X, or Windows, and Python 2.7 or 3.4 or higher.\u003c/p\u003e\n"],["\u003cp\u003eInstallation options include using a package manager (pip or setuptools) or manual download and installation.\u003c/p\u003e\n"],["\u003cp\u003eFor App Engine, you need to manually copy the Python client libraries into your application.\u003c/p\u003e\n"]]],[],null,["# Blogger APIs Client Library for Python\n\nThis page contains information about getting started with the Blogger API v3 by using\nthe Google API Client Library for Python (v1/v2). For more information, see the following documentation:\n\n- Browse the [PyDoc reference for the Blogger API v3](https://googleapis.github.io/google-api-python-client/docs/dyn/blogger_v3.html).\n- Read the [Developer's guide for the Google API Client Library for Python (v1/v2)](/api-client-library/python).\n- Interact with this API in your browser using the [APIs Explorer for the Blogger API v3](https://developers.google.com/apis-explorer/#p/blogger/v3/).\n\nSample\n------\n\nThe [blogger](https://github.com/google/google-api-python-client/tree/master/samples/blogger) sample can help you get started by using the client library.\n\nSystem requirements\n-------------------\n\n- Operating systems:\n - Linux\n - macOS X\n - Windows\n- [The v1 client library requires Python 2.7 or higher. The v2 client library requires 3.7 or higher.](http://python.org/download/)\n\nInstall the client library\n--------------------------\n\nYou can either use a package manager or manually download and install the Python client library:\n\n### Managed install\n\nUse pip or setuptools to manage your installation. You might\nneed to run `sudo` first.\n\n- [pip](http://pypi.python.org/pypi/pip) (preferred): \n\n ```\n pip install --upgrade google-api-python-client\n ```\n- [Setuptools](http://pypi.python.org/pypi/setuptools): \n\n ```\n easy_install --upgrade google-api-python-client\n ```\n\n### Manual install\n\n1. [Download the latest client\n library for Python](https://pypi.python.org/pypi/google-api-python-client/).\n2. Unpack the code.\n3. Install: \n\n ```\n python setup.py install\n ```\n\n### App Engine\n\nBecause the Python client libraries aren't installed in the\n[App Engine Python runtime environment](https://cloud.google.com/appengine/docs/python/),\nyou must [copy them into your application](https://cloud.google.com/appengine/docs/python/tools/libraries27#vendoring) just like third-party libraries."]]