Skip to main content

A simple package to fetch images from Pexels.

Project description

Fetch Images

A simple Python package to fetch images from Pexels API based on a search query.

Installation

You can install fetch_images via pip:

pip install fetch_images

For Jupyter Notebooks

If you're using Jupyter notebooks, you can install fetch_images using the following command in a notebook cell:

!pip install fetch_images

Usage

from fetch_images.fetch_images import fetch_images

# Specify the search query and the number of images to fetch
query = "cat"
num_images = 10

# Fetch images from Pexels API
result = fetch_images(query, num_images)

# Retrieve image URLs and total count
img_urls = result['img_urls']
total_count = result['total_count']

# Print the fetched image URLs and total count
print('Image URLs:', img_urls)
print('Total image count:', total_count)

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request for any improvements or additional features.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fetch_images-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fetch_images-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file fetch_images-0.1.0.tar.gz.

File metadata

  • Download URL: fetch_images-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/5.15.133+

File hashes

Hashes for fetch_images-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0297e81fabba8736b23abf1fc00e068bd7c0705bfa7589c25512a33dfea6febe
MD5 dbc9b5bcd8e90498fc423482c3a5c48a
BLAKE2b-256 2341543c1d56b8d06e13eadca8465b451b4f04c01662d992c9ea9832cc771ff1

See more details on using hashes here.

File details

Details for the file fetch_images-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fetch_images-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/5.15.133+

File hashes

Hashes for fetch_images-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62faf2bee9abef231b19906b535b474430479e898ae8735b669c2842e5b47be1
MD5 46afe715c259647257a69277d33bc3bd
BLAKE2b-256 98fccad23669797150ad7d0c787ea73dc996070a6e0ee4de3d1a5bdcebf4703b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page