fzmovies-sdk v1.4.4
Fzmovies SDK 🎖️
This SDK allows you to get movies from FzMovies. It utilizes Axios for HTTP requests and Cheerio for web scraping. With this SDK, you can get movies from different categories, search for movies, and get the download links for movies. You can even build your own movie download site with this SDK. Clipsave's movie download site is built with this SDK.
Features 👜
Search and Retrieve Movie Information
- Fetch movies by name or link.
- Get detailed information about movies using their ID or link.
Download Links Management
- Retrieve pre-download and direct download links for movies.
- Fetch comprehensive download links for movies from various sources.
Browse and Sort Movies
- Fetch lists of movies by category, such as Hollywood, Bollywood, and dubbed Hollywood.
- Get top trending movies based on category and sorting criteria.
User-Generated Content
- Fetch user-generated movie lists.
- Retrieve movies from specific user-generated list URLs.
Movie Tags and Reviews
- Fetch available movie tags and movies associated with specific tags.
- Retrieve and sort movie reviews based on helpfulness, date, votes, or rating.
Installation 📦
To install the package, depending on the package manager you're using. Run the following command:
npm
npm install fzmovies-sdk
bun
bun install fzmovies-sdk
yarn
yarn add fzmovies-sdk
pnpm
pnpm add fzmovies-sdk
How To Use 🛠️
To use the SDK, you need to import the package and create an instance of the FzMoviesDownloader
class. You can then use the methods provided by the class to interact with the SDK.
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getMoviesByName("Iron man").then((movies) => {
console.log(movies);
});
Methods 🔧
getMoviesByName(movieName: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getMoviesByName("Antitrust").then((movie) => {
console.log(movie);
});
getMovieByLink(movieLink: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies
.getMovieByLink(
"https://www.fzmovies.net/movie-The%20Imitation%20Game--hmp4.htm"
)
.then((movie) => {
console.log(movie);
});
getMovieInfo(movieId: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getMovieInfo("tt2084970").then((movie) => {
console.log(movie);
});
getMoviePreDownloadLink(movieLink: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies
.getMoviePreDownloadLink("https://www.fzmovies.net/movie-Inception--hmp4.htm")
.then((preDownloadInfo) => {
console.log(preDownloadInfo);
});
getMovieDirectDownloadLink(moviePreDownloadLink: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies
.getMovieDirectDownloadLink("https://www.fzmovies.net/download.php?id=12345")
.then((downloadLinks) => {
console.log(downloadLinks);
});
getMovieDownloadLinks(movieLink: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies
.getMovieDownloadLinks("https://www.fzmovies.net/movie-Inception--hmp4.htm")
.then((downloadLinks) => {
console.log(downloadLinks);
});
getMovieReviews(movieId: string, opt?: "helpfulness" | "date" | "votes" | "rating", sort?: "asc" | "desc")
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getMovieReviews("tt2084970", "date", "desc").then((reviews) => {
console.log(reviews);
});
getMoviesList(category: MovieCategory, sortBy: MovieSortBy)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getMoviesList("hollywood", "latest").then((movies) => {
console.log(movies);
});
getHollyWoodMoviesList(sortBy: MovieSortBy)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getHollyWoodMoviesList("latest").then((movies) => {
console.log(movies);
});
getBollyWoodMoviesList(sortBy: MovieSortBy)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getBollyWoodMoviesList("latest").then((movies) => {
console.log(movies);
});
getDubbedHollyWoodMoviesList(sortBy: MovieSortBy)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getDubbedHollyWoodMoviesList("latest").then((movies) => {
console.log(movies);
});
getTopTrendingMovies(category: MovieCategory)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getTopTrendingMovies("hollywood").then((movies) => {
console.log(movies);
});
getTopTrendingHollyWoodMovies()
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getTopTrendingHollyWoodMovies().then((movies) => {
console.log(movies);
});
getTopTrendingBollyWoodMovies()
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getTopTrendingBollyWoodMovies().then((movies) => {
console.log(movies);
});
getTopTrendingDubbedHollyWoodMovies()
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getTopTrendingDubbedHollyWoodMovies().then((movies) => {
console.log(movies);
});
getUserGeneratedMovieList()
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getUserGeneratedMovieList().then((lists) => {
console.log(lists);
});
getMoviesByListUrl(listLink: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies
.getMoviesByListUrl("https://www.fzmovies.net/dslfkj3--lk3j4.htm")
.then((movies) => {
console.log(movies);
});
getMovieTags()
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getMovieTags().then((tags) => {
console.log(tags);
});
getMoviesByTagUrl(tagUrl: string)
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies
.getMoviesByTagUrl("https://www.fzmovies.net/tagsearch.php?tag=action")
.then((movies) => {
console.log(movies);
});
getIMDB250Movies()
import { FzMoviesDownloader } from "fzmovies-sdk";
const fzmovies = new FzMoviesDownloader();
fzmovies.getIMDB250Movies().then((movies) => {
console.log(movies);
});
Contributing 🤝
First off, thanks for taking the time to contribute!
- Star the repository, you can then create a fork
- Clone your fork. Install the dependencies.
- Create a branch for your feature (You can also create an issue on that so that you can link it to your PR)
- Commit your changes and push (Please give a descriptive message)
- Submit your PR
- Wait for your PR to be reviewed and merged
License 📝
This repo is MIT-licensed open-source software by Adedoyin Emmanuel Adeniyi and contributors: