Use Pexels API v1 with Python
Project description
PexelsPy
A Python package form API for pexels website. All the variables in the documentation are included.
Sample Program
This is a sample program to run in your terminal irrespective of your Operating system.
from pexelsPy import API
PEXELS_API = "YOUR-PEXELS-API"
api = API(PEXELS_API)
#For photos
api.search_photos('your search',page=no of pages, results_per_page=number)
photos = api.get_photos()
#for videos
api.search_videos('your search',page=no of pages, results_per_page=number)
videos = api.get_videos()
#To access the details in the variables photos and videos LOOP through the variable
#for photos
for data in photos:
print(data.[Your-required-data_structure])
#for videos
for data in videos:
print(data.[data_structure])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pexelsPy-1.0.1.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pexelsPy-1.0.1.tar.gz.
File metadata
- Download URL: pexelsPy-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ccb711886fc33fa7c0f90560bbf7a46271925036ff9ded70c5480697d897806
|
|
| MD5 |
6d1d6d6f3eaab12a846d4114d488284f
|
|
| BLAKE2b-256 |
8bdbe3b542554aa81ff5f9eb653acd14f52ee0ab741f7943088f8ec574cb093a
|
File details
Details for the file pexelsPy-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pexelsPy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b918b013f21809ed7c47fa84dcbc0c71132cb7e16f0233ad571ff946c5e8c2de
|
|
| MD5 |
3a52b7f5f976ff199e8a6b236d1eb699
|
|
| BLAKE2b-256 |
b87725cece86f56b089ef46c35878b3f0c99f457675cef752027e322f2a27feb
|