apify-1.1.0b5
توضیحات
Apify SDK for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | apify-1.1.0b5 |
| نام | apify |
| نسخه کتابخانه | 1.1.0b5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Apify Technologies s.r.o. |
| ایمیل نویسنده | support@apify.com |
| آدرس صفحه اصلی | https://github.com/apify/apify-sdk-python |
| آدرس اینترنتی | https://pypi.org/project/apify/ |
| مجوز | Apache Software License |
# Apify SDK for Python
The Apify SDK for Python is the official library to create [Apify Actors](https://docs.apify.com/platform/actors) in Python.
It provides useful features like actor lifecycle management, local storage emulation, and actor event handling.
If you just need to access the [Apify API](https://docs.apify.com/api/v2) from your Python applications,
check out the [Apify Client for Python](https://docs.apify.com/api/client/python) instead.
## Documentation
For usage instructions, check the documentation on [Apify Docs](https://docs.apify.com/sdk/python/).
## Example
```python
from apify import Actor
from bs4 import BeautifulSoup
import requests
async def main():
async with Actor:
response = requests.get('https://apify.com')
soup = BeautifulSoup(response.content, 'html.parser')
await Actor.push_data({ 'url': url, 'title': soup.title.string })
```
## What are Actors?
Actors are serverless cloud programs that can do almost anything a human can do in a web browser.
They can do anything from small tasks such as filling in forms or unsubscribing from online services,
all the way up to scraping and processing vast numbers of web pages.
They can be run either locally, or on the [Apify platform](https://docs.apify.com/platform/),
where you can run them at scale, monitor them, schedule them, or publish and monetize them.
If you're new to Apify, learn [what is Apify](https://docs.apify.com/platform/about) in the Apify platform documentation.
## Creating Actors
To create and run Actors through Apify Console,
see the [Console documentation](https://docs.apify.com/academy/getting-started/creating-actors#choose-your-template).
To create and run Python Actors locally, check the documentation for [how to create and run Python Actors locally](https://docs.apify.com/sdk/python/docs/overview/running-locally).
## Guides
To see how you can use the Apify SDK with other popular libraries used for web scraping,
check out our guides for using
[Requests and HTTPX](https://docs.apify.com/sdk/python/docs/guides/requests-and-httpx),
[Beautiful Soup](https://docs.apify.com/sdk/python/docs/guides/beautiful-soup),
[Playwright](https://docs.apify.com/sdk/python/docs/guides/playwright),
[Selenium](https://docs.apify.com/sdk/python/docs/guides/selenium),
or [Scrapy](https://docs.apify.com/sdk/python/docs/guides/scrapy).
## Usage concepts
To learn more about the features of the Apify SDK and how to use them,
check out the Usage Concepts section in the sidebar,
particularly the guides for the [Actor lifecycle](https://docs.apify.com/sdk/python/docs/concepts/actor-lifecycle),
[working with storages](https://docs.apify.com/sdk/python/docs/concepts/storages),
[handling Actor events](https://docs.apify.com/sdk/python/docs/concepts/actor-events)
or [how to use proxies](https://docs.apify.com/sdk/python/docs/concepts/proxy-management).
نیازمندی
| مقدار | نام |
|---|---|
| ~=22.1.0 | aiofiles |
| ~=1.2 | aioshutil |
| ~=1.0.0 | apify-client |
| ~=0.4.6 | colorama |
| ~=39.0.1 | cryptography |
| ~=0.23.0 | httpx |
| ~=5.9.4 | psutil |
| ~=9.0.4 | pyee |
| ~=2.1.0 | sortedcollections |
| ~=4.4.0 | typing-extensions |
| ~=10.4 | websockets |
| ~=2.0.1 | autopep8 |
| ~=3.9.0 | filelock |
| ~=6.0.0 | flake8 |
| ~=23.1.20 | flake8-bugbear |
| ~=2.1.0 | flake8-commas |
| ~=3.10.1 | flake8-comprehensions |
| ~=20.10.0 | flake8-datetimez |
| ~=1.7.0 | flake8-docstrings |
| ~=6.0.0 | flake8-isort |
| ~=1.3.0 | flake8-noqa |
| ~=1.7.2 | flake8-pytest-style |
| ~=3.3.1 | flake8-quotes |
| ~=0.0.13 | flake8-unused-arguments |
| ~=5.12.0 | isort |
| ~=1.0.0 | mypy |
| ~=0.13.2 | pep8-naming |
| ~=3.0.1 | pre-commit |
| ~=7.2.0 | pytest |
| ~=0.20.3 | pytest-asyncio |
| ~=2.0.0 | pytest-only |
| ~=3.12.0 | pytest-randomly |
| ~=2.1.0 | pytest-timeout |
| ~=3.2.0 | pytest-xdist |
| ~=0.20.1 | respx |
| ~=6.1.3 | sphinx |
| ~=1.22 | sphinx-autodoc-typehints |
| ==0.5.4 | sphinx-markdown-builder |
| ~=22.1.0.4 | types-aiofiles |
| ~=0.4.15.7 | types-colorama |
| ~=5.9.5.5 | types-psutil |
| - | types-setuptools |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl apify-1.1.0b5:
pip install apify-1.1.0b5.whl
نصب پکیج tar.gz apify-1.1.0b5:
pip install apify-1.1.0b5.tar.gz