corona-0.1.2
توضیحات
Website Screenshot Utility
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | corona-0.1.2 |
| نام | corona |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | John Vrbanac |
| ایمیل نویسنده | john.vrbanac@linux.com |
| آدرس صفحه اصلی | https://github.com/pyarmory/corona |
| آدرس اینترنتی | https://pypi.org/project/corona/ |
| مجوز | Apache v2 |
Corona
======
Corona is essentially a basic webpage screenshot utility that
uses headless Chromium via pyppeteer.
Running
-------
.. code-block:: shell
# Download a version of Chromium to use
corona setup
# Take a snapshot
corona snap https://google.com google.png
Troubleshooting
---------------
Depending on your execution environment, you might need to disable the
Chrome sandbox. To do so, add the ``--disable-sandbox`` argument; however,
please be aware of the risks in doing this.
Extension
---------
The application allows for a couple of extension points via a python
script that follows this format:
.. code-block:: python
async def pre_snapshot(page):
# Do something awesome just before the
# snapshot here
async def post_snapshot(page):
# Do something even more awesome after
# the snapshot has been taken
نیازمندی
| مقدار | نام |
|---|---|
| ==0.0.25 | pyppeteer |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl corona-0.1.2:
pip install corona-0.1.2.whl
نصب پکیج tar.gz corona-0.1.2:
pip install corona-0.1.2.tar.gz