wallpaperscraft


Namewallpaperscraft JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/Den4ikSuperOstryyPer4ik/WallpapersCraftAPI/
SummaryUnofficial API WallpapersCraft (wallpaperscraft.com)
upload_time2023-07-03 11:32:55
maintainer
docs_urlNone
authorDen4ikSuperOstryyPer4ik
requires_python>=3.7
licenseApache2.0
keywords python3 wallpaperscraft wallpapers craft wallpaperscraftapi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # WallpapersCraftAPI
> Unofficial API WallpapersCraft (wallpaperscraft.com)

#
# <img width="30" height="30" src="https://img.icons8.com/external-sbts2018-outline-color-sbts2018/58/external-install-basic-ui-elements-2.3-sbts2018-outline-color-sbts2018.png" alt="external-install-basic-ui-elements-2.3-sbts2018-outline-color-sbts2018"/> Install

## Install via GitHub:
``` bash
pip3 install https://github.com/Den4ikSuperOstryyPer4ik/WallpapersCraftAPI/archive/main.zip --upgrade
```

## Stable version from PyPi:
``` bash
pip3 install wallpaperscraft
```
> For Windows: <s>pip3</s> > <b>pip</b>

# Usage

``` python
from wallpaperscraft import WallpapersCraftAPI, TAG, CATALOG

api = WallpapersCraftAPI()

# get 15 pictures from first page with nature by size 1024x768
nature_pics = api.get_by_catalog(CATALOG.NATURE, resolution="1024x768")

# get 15 pictures from 5th(fifth) page with space by size 1920x1080
vectore_pics = api.get_by_catalog(CATALOG.SPACE, page=5, resolution="1920x1080")

# get 15 pictures from second(2) page with sky and different size
sky_pictures = api.get_by_tag(TAG.SKY, page=2)

# search pictures from first page with night city and different size
night_city_pics = api.search("night city")

# get 15 pictures from first page on `https://wallpaperscraft.com/all/` by different size
all_pics = api.all()
```

# Async Usage
``` python
from wallpaperscraft import AsyncWallpapersCraftAPI, TAG, CATALOG
import asyncio

async def main():
    api = AsyncWallpapersCraftAPI()

    # get 15 pictures from first page with nature by size 1024x768
    nature_pics = await api.get_by_catalog(CATALOG.NATURE, resolution="1024x768")

    # get 15 pictures from 5th(fifth) page with space by size 1920x1080
    vectore_pics = await api.get_by_catalog(CATALOG.SPACE, page=5, resolution="1920x1080")

    # get 15 pictures from second(2) page with sky and different size
    sky_pictures = await api.get_by_tag(TAG.SKY, page=2)

    # search pictures from first page with night city and different size
    night_city_pics = await api.search("night city")

    # get 15 pictures from first page on `https://wallpaperscraft.com/all/` by different size
    all_pics = await api.all()

asyncio.run(main())
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Den4ikSuperOstryyPer4ik/WallpapersCraftAPI/",
    "name": "wallpaperscraft",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "python3 wallpaperscraft wallpapers craft WallpapersCraftAPI",
    "author": "Den4ikSuperOstryyPer4ik",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c3/70/0d8f15f6df4f2f9d1727d19cb1d97ad258897516968433882e003991a510/wallpaperscraft-1.0.1.tar.gz",
    "platform": null,
    "description": "# WallpapersCraftAPI\r\n> Unofficial API WallpapersCraft (wallpaperscraft.com)\r\n\r\n#\r\n# <img width=\"30\" height=\"30\" src=\"https://img.icons8.com/external-sbts2018-outline-color-sbts2018/58/external-install-basic-ui-elements-2.3-sbts2018-outline-color-sbts2018.png\" alt=\"external-install-basic-ui-elements-2.3-sbts2018-outline-color-sbts2018\"/> Install\r\n\r\n## Install via GitHub:\r\n``` bash\r\npip3 install https://github.com/Den4ikSuperOstryyPer4ik/WallpapersCraftAPI/archive/main.zip --upgrade\r\n```\r\n\r\n## Stable version from PyPi:\r\n``` bash\r\npip3 install wallpaperscraft\r\n```\r\n> For Windows: <s>pip3</s> > <b>pip</b>\r\n\r\n# Usage\r\n\r\n``` python\r\nfrom wallpaperscraft import WallpapersCraftAPI, TAG, CATALOG\r\n\r\napi = WallpapersCraftAPI()\r\n\r\n# get 15 pictures from first page with nature by size 1024x768\r\nnature_pics = api.get_by_catalog(CATALOG.NATURE, resolution=\"1024x768\")\r\n\r\n# get 15 pictures from 5th(fifth) page with space by size 1920x1080\r\nvectore_pics = api.get_by_catalog(CATALOG.SPACE, page=5, resolution=\"1920x1080\")\r\n\r\n# get 15 pictures from second(2) page with sky and different size\r\nsky_pictures = api.get_by_tag(TAG.SKY, page=2)\r\n\r\n# search pictures from first page with night city and different size\r\nnight_city_pics = api.search(\"night city\")\r\n\r\n# get 15 pictures from first page on `https://wallpaperscraft.com/all/` by different size\r\nall_pics = api.all()\r\n```\r\n\r\n# Async Usage\r\n``` python\r\nfrom wallpaperscraft import AsyncWallpapersCraftAPI, TAG, CATALOG\r\nimport asyncio\r\n\r\nasync def main():\r\n    api = AsyncWallpapersCraftAPI()\r\n\r\n    # get 15 pictures from first page with nature by size 1024x768\r\n    nature_pics = await api.get_by_catalog(CATALOG.NATURE, resolution=\"1024x768\")\r\n\r\n    # get 15 pictures from 5th(fifth) page with space by size 1920x1080\r\n    vectore_pics = await api.get_by_catalog(CATALOG.SPACE, page=5, resolution=\"1920x1080\")\r\n\r\n    # get 15 pictures from second(2) page with sky and different size\r\n    sky_pictures = await api.get_by_tag(TAG.SKY, page=2)\r\n\r\n    # search pictures from first page with night city and different size\r\n    night_city_pics = await api.search(\"night city\")\r\n\r\n    # get 15 pictures from first page on `https://wallpaperscraft.com/all/` by different size\r\n    all_pics = await api.all()\r\n\r\nasyncio.run(main())\r\n```\r\n",
    "bugtrack_url": null,
    "license": "Apache2.0",
    "summary": "Unofficial API WallpapersCraft (wallpaperscraft.com)",
    "version": "1.0.1",
    "project_urls": {
        "Download": "https://github.com/Den4ikSuperOstryyPer4ik/WallpapersCraftAPI//releases/latest",
        "Homepage": "https://github.com/Den4ikSuperOstryyPer4ik/WallpapersCraftAPI/"
    },
    "split_keywords": [
        "python3",
        "wallpaperscraft",
        "wallpapers",
        "craft",
        "wallpaperscraftapi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e53d7064b204f56d11bab7d5b0c5bc42f647c126622135e8726bfdc7b556c56",
                "md5": "7a065975d6d3e22ff767b24484f2730b",
                "sha256": "5af97e51bb4b69e6644928de1f7c22c9db4af153d5d055e8672baa115ea21f51"
            },
            "downloads": -1,
            "filename": "wallpaperscraft-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a065975d6d3e22ff767b24484f2730b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9919,
            "upload_time": "2023-07-03T11:32:53",
            "upload_time_iso_8601": "2023-07-03T11:32:53.451029Z",
            "url": "https://files.pythonhosted.org/packages/5e/53/d7064b204f56d11bab7d5b0c5bc42f647c126622135e8726bfdc7b556c56/wallpaperscraft-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c3700d8f15f6df4f2f9d1727d19cb1d97ad258897516968433882e003991a510",
                "md5": "db03895e2f98f05f30e4f42f452631b1",
                "sha256": "a07c5fd115d068bf58f79a2ed81115dead34450bf59c0c9094e641562b2a47e5"
            },
            "downloads": -1,
            "filename": "wallpaperscraft-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "db03895e2f98f05f30e4f42f452631b1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 8638,
            "upload_time": "2023-07-03T11:32:55",
            "upload_time_iso_8601": "2023-07-03T11:32:55.091145Z",
            "url": "https://files.pythonhosted.org/packages/c3/70/0d8f15f6df4f2f9d1727d19cb1d97ad258897516968433882e003991a510/wallpaperscraft-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-03 11:32:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Den4ikSuperOstryyPer4ik",
    "github_project": "WallpapersCraftAPI",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "wallpaperscraft"
}
        
Elapsed time: 0.08659s