Mika Scraper / downloadSnackVideo
Function: downloadSnackVideo()
downloadSnackVideo(
url
):Promise
<SnackVideoResult
>
Defined in: src/_other-scraper/snackVideoDL.ts:32
Downloads video data from a specified SnackVideo URL using the public API provided by snackdownloader.com.
Parameters
url
string
A valid SnackVideo video link. This link must point to an existing video on SnackVideo to retrieve data successfully.
Returns
Promise
<SnackVideoResult
>
A promise that resolves to an object containing the following:
success
: A boolean indicating whether the operation was successful.url
: The download URL of the video if successful, or an error message if not.
Example
import { downloadSnackVideo } from 'mika-scraper';
async function fetchVideo() {
try {
const result = await downloadSnackVideo('https://www.snackvideo.com/video123');
console.log(result);
} catch (error) {
console.error('Error downloading video:', error);
}
}
Last updated on