Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
.. image:: https://img.shields.io/pypi/v/zyte-api.svg :target: https://pypi.python.org/pypi/zyte-api :alt: PyPI Version
.. image:: https://img.shields.io/pypi/pyversions/zyte-api.svg :target: https://pypi.python.org/pypi/zyte-api :alt: Supported Python Versions
.. image:: https://github.com/zytedata/python-zyte-api/actions/workflows/test.yml/badge.svg :target: https://github.com/zytedata/python-zyte-api/actions/workflows/test.yml :alt: Build Status
.. image:: https://codecov.io/github/zytedata/zyte-api/coverage.svg?branch=master :target: https://codecov.io/gh/zytedata/zyte-api :alt: Coverage report
.. description-start
Command-line client and Python client library for Zyte API
_.
.. _Zyte API: https://docs.zyte.com/zyte-api/get-started.html
.. description-end
.. install-start
.. code-block:: shell
pip install zyte-api
.. note:: Python 3.8+ is required.
.. install-end
.. basic-start
.. key-get-start
After you sign up for a Zyte API account <https://app.zyte.com/account/signup/zyteapi>
, copy your API key <https://app.zyte.com/o/zyte-api/api-access>
.
.. key-get-end
Then you can use the zyte-api command-line client to send Zyte API requests. First create a text file with a list of URLs:
.. code-block:: none
https://books.toscrape.com
https://quotes.toscrape.com
And then call zyte-api
from your shell:
.. code-block:: shell
zyte-api url-list.txt --api-key YOUR_API_KEY --output results.jsonl
For very basic Python scripts, use the sync API:
.. code-block:: python
from zyte_api import ZyteAPI
client = ZyteAPI(api_key="YOUR_API_KEY")
response = client.get({"url": "https://toscrape.com", "httpResponseBody": True})
For asyncio code, use the async API:
.. code-block:: python
import asyncio
from zyte_api import AsyncZyteAPI
async def main():
client = AsyncZyteAPI(api_key="YOUR_API_KEY")
response = await client.get(
{"url": "https://toscrape.com", "httpResponseBody": True}
)
asyncio.run(main())
.. basic-end
Read the documentation <https://python-zyte-api.readthedocs.io>
_ for more
information.
FAQs
Python interface to Zyte API
We found that zyte-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.