Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pixabay-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixabay-python

a Python library for interacting with Pixabay api

  • 1.1.0
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc