python-pixabay (pixabay) is unofficial API client library for pixabay API (https://pixabay.com/api/docs/)
pip3 install pixabaygit clone https://github.com/Lukas0025/python-pixabay.git
cd python-pixabay
make install
importpixabay.core# init pixabay APIpx=pixabay.core("YOUR API KEY")
# search for spacespace=px.query("space")
# get len of hits len(space)print("{} hits".format(len(space)))
# downalod fisrt imagespace[0].download("space.jpg", "largeImage")importpixabay.core# init pixabay APIpx=pixabay.core("YOUR API KEY")
# search for spacespace=px.queryVideo("space")
# get len of hits len(space)print("{} hits".format(len(space)))
# downalod fisrt videospace[0].download("space.mp4", "large")- Want to report a bug or request a feature? Please open an issue.
- Want to help us with build? Contact me
python-pixabay is licensed under Apache2