'A Pexels API can not find a video
I scrape a pexels.com with Pexles API from there https://github.com/AguilarLagunasArturo/pexels-api I can get a URL of videos it is possible because in the definition I can not find some function to scrape videos only photos
PEXELS_API_KEY = 'My API code'
api = API(PEXELS_API_KEY)
# Search five 'kitten' photos
api.search(tag, page=1, results_per_page=5)
# Get photo entries
photos = api.get_entries()
# Loop the five photos
for photo in photos:
# Print photographer
print('Photographer: ', photo.photographer)
# Print url
print('Photo url: ', photo.url)
# Print original size url
print('Photo original size: ', photo.original)
It is working but just for photos If this API can not please tell me some better solution
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
