Metadata-Version: 2.1
Name: pexelsPy
Version: 1.0.1rc0
Summary: Use Pexels API v1 with Python
Home-page: https://github.com/kingsamurai123/pexels-api
Author: Sravan Kumar
Author-email: demonlyf98@protonmail.com
License: UNKNOWN
Keywords: pexels api images photos videos python
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests

# PexelsPy
A Python package form API for pexels website. All the variables in the documentation are included.

# INSTALLATION
```python
pip install pexelsPY
```

# Sample Program
This is a sample program to run in your terminal.
```python
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])
```

# To use programs under singleSamples folder.

**_NOTE:_** First you must create a environment variable in your respective machine called 'PEXELS_API' with your API VALUE.

- Assuming you are in the same directory as the files are present.

### searchPhotos.py
syntax: ```python searchPhotos.py your_required_search_name page_number Number_of_images_in_that_page```\
Example: ```python searchPhotos.py koala 1 1```

### popularPhotos.py
syntax: ```python popularPhotos.py page_number_you_want_to_search number_of_images_you_need```\
Example: ```python popularPhotos.py 2 2```

### curatedPhotos.py
syntax: ```python curatedPhotos.py page_number_you_want_to_search number_of_images_you_need```\
Example: ```python curatedPhotos.py 2 2```




