Skip to content

Lukas0025/python-pixabay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

issues closed issues size last commit

python-pixabay (pixabay) is unofficial API client library for pixabay API (https://pixabay.com/api/docs/)

Install from pip

pip3 install pixabay

Install from source

git clone https://github.com/Lukas0025/python-pixabay.git
cd python-pixabay
make install

Getting started

simple example

download image

import pixabay.core

# init pixabay API
px = pixabay.core("YOUR API KEY")

# search for space
space = px.query("space")

# get len of hits len(space)
print("{} hits".format(len(space)))

# downalod fisrt image
space[0].download("space.jpg", "largeImage")

download video

import pixabay.core

# init pixabay API
px = pixabay.core("YOUR API KEY")

# search for space
space = px.queryVideo("space")

# get len of hits len(space)
print("{} hits".format(len(space)))

# downalod fisrt video
space[0].download("space.mp4", "large")

Getting help

Reporting bugs and contributing

  • Want to report a bug or request a feature? Please open an issue.
  • Want to help us with build? Contact me

Licensing

python-pixabay is licensed under Apache2

About

Unofficial pixabay python API client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published