0.1.6 • Published 5 months ago

media-asset-hub v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Media Asset Hub

Media Asset Hub is a Node.js-based web application that allows users to download high-quality images and videos from various free stock media websites.

Features

  • Download images and videos from multiple free sources
  • Supported websites include Pexels, Pixabay, and more
  • User-friendly interface
  • Fast and efficient downloads
  • No registration required

Supported Websites

Installation

  1. Clone the repository:

    git clone https://github.com/ai-pulse-matrix/MediaAssetHub.git
  2. Navigate to the project directory:

    cd ./MediaAssetHub
  3. Install dependencies:

    npm install
  4. Start the application:

    npm start
  5. Open your browser and visit http://localhost:3000

Usage Examples

Here are some examples of how to use the searchAndDownloadMedia function:

  1. Download photos from Pexels:
import { searchAndDownloadMedia } from 'media-asset-hub';

async function downloadPexelsPhotos() {
  await searchAndDownloadMedia({
    keyword: 'nature',
    mediaType: 'photo',
    outputDir: './downloads/nature_photos',
    site: 'pexels',
    apiKey: 'your_pexels_api_key_here',
    params: {
      perPage: 20,
      page: 1,
    },
  });
}
  1. Download videos from Pixabay:
typescript;
import { searchAndDownloadMedia } from 'media-asset-hub';

async function downloadPixabayVideos() {
  await searchAndDownloadMedia({
    keyword: 'city',
    mediaType: 'video',
    outputDir: './downloads/city_videos',
    site: 'pixabay',
    apiKey: 'your_pixabay_api_key_here',
    params: {
      perPage: 15,
      page: 1,
      minWidth: 1280,
      minHeight: 720,
    },
  });
}

Make sure to replace 'your_pexels_api_key_here' and 'your_pixabay_api_key_here' with your actual API keys.

Technologies Used

  • Node.js
  • Express.js
  • Axios for API requests
  • Bootstrap for styling

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

0.1.6

5 months ago

0.1.3

5 months ago

0.1.2

6 months ago