Repository files navigation A simple scrapper for pexels.com
search(self, query:str, page=1, type="photos", size="all", orientation="all", raw=False)
Query: The query of user
Page: page number
Type: photos or videos
Size: Size of image (small, medium, large)
Orientation: Orientation of the images (portrait, landscape)
Raw: If True return raw response.
get_photo_url(self, element)
Element: must be the id of image or PexelPhoto() element
download_photo(self, element, path="")
Element: must be the id of image or PexelPhoto() element
path: keep empty for created file in local folder
======
download_video(self, element, path="", quality="original")
element: Must be a PexelVideo element
path: keep empty for created file in local folder
Quality: quality of the video (original, sd, hd)
PexelsElement: PexelsElement
id
type
slug
width
height
aspect_ratio
created_at
updated_at
publish_at
title
license
user
tags
PexelPhoto(PexelsElement): PexelPhoto(PexelsElement)
images: list of differents size of a single image
PexelVideo(PexelsElement): PexelVideo(PexelsElement)
videos: list of differents quality and size of a single video
About
A very simple pexels scrapper using only requests
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.