Skip to main content

a Python library for interacting with Pixabay api

Project description

Pixabay_Python

This is a Python library for interacting with Pixabay api.

Requirements

Requirements can be installed by this line:

$ python -m pip install pixabay_python

Usage

You need to first sign up to Pixabay and get an api key from here. Then you can use your api key to access Pixabay like the following examples

example 1

import pixabay_python as pxb

client = pxb.PixabayClient(apiKey="your_api_key") 
searchResult = client.searchImage(q="tree")
hitsList = list(searchResult.hits)
pxb.download(url=hitsList[0].largeImageURL, outputDir="./anOutDir")

example 2

import pixabay_python as pxb

client = pxb.PixabayClient(apiKey="your_api_key") 
searchResult = client.searchImage(q="tree")
hitsList = list(searchResult.hits)
someSelectedURLs = [hit.largeImageURL for hit in hitsList[:5]]
pxb.downloadList(urlList=someSelectedURLs, outputDir="./anOutDir")

License

Pixabay_Python is licensed under Apache 2.0 License.

Credits

  • Developed by Farzad Shayanfar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixabay_python-1.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pixabay_python-1.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pixabay_python-1.1.0.tar.gz.

File metadata

  • Download URL: pixabay_python-1.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pixabay_python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7d3d261b45baf0c02bb0522f50791f0e4bfbdb704b2e5b9051cf1b03da813eb6
MD5 c10de90d53f936829bdd6f56155d5f81
BLAKE2b-256 15dbf9eaf421971f7a90d2de49fad3800b6d7fb75ed0a0aa4726a2a476b8e58c

See more details on using hashes here.

File details

Details for the file pixabay_python-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pixabay_python-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pixabay_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a74f0ff427410fc1cea258210f2243d801ca76ee3fad1f772cb74a7b67be4a
MD5 b437a7c7a9946a97a2fef987e93b35b4
BLAKE2b-256 0f254a051b5111dcfcf09b145d0cce6471d218693302d1c35d4dfc6616241d03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page