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.
- 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
-
Clone the repository:
git clone https://github.com/ai-pulse-matrix/MediaAssetHub.git
-
Navigate to the project directory:
cd ./MediaAssetHub
-
Install dependencies:
npm install
-
Start the application:
npm start
-
Open your browser and visit
http://localhost:3000
Here are some examples of how to use the searchAndDownloadMedia
function:
- 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,
},
});
}
- 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.
- Node.js
- Express.js
- Axios for API requests
- Bootstrap for styling
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.