npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hacxk-movie-scrapper

v1.0.0

Published

a

Downloads

28

Readme

HACXK Tamil Movie Scraper

Welcome to the HACXK Tamil Movie Scraper! This project provides a set of functions to scrape movie details from the TamilYogi website. You can search for movies, fetch details from specific movie URLs, and list movies by category.

Features

  • Search Movies: Search for movies by keyword.
  • Fetch Movie Details: Fetch movie details, including download links and quality, from a given movie URL.
  • List Movies by Category: List movies by category, such as Tamil HD Movies, Dubbed Movies, and Web Series.

Installation

To use this project, you need to have Node.js installed. Install the required packages using npm:

npm install hacxk-movie-scrapper

Usage

Functions

1. Search Movies

Search for movies by a keyword.

const { hacxkMovieSearch } = require('hacxk-movie-scrapper');

async function searchMovies(query) {
    const result = await hacxkMovieSearch(query);
    console.log(JSON.stringify(result, null, 2));
}

// Example usage:
searchMovies('Lift');

2. Fetch Movie Details

Fetch detailed information, including download links and quality, from a specific movie URL.

const { hacxkMoviedl } = require('hacxk-movie-scrapper');

async function getMovieDetails(url) {
    const result = await hacxkMoviedl(url);
    console.log(JSON.stringify(result, null, 2));
}

// Example usage:
getMovieDetails('https://tamilyogi.beer/money-heist-s05-vol-2-2021-hd-720p-tamil-dubbed-series-watch-online/');

3. List Movies by Category

List movies by category. The page number is optional.

const { hacxkTamilMovie } = require('hacxk-movie-scrapper');

async function listMovies(option, pageNo) {
    const result = await hacxkTamilMovie(option, pageNo);
    console.log(JSON.stringify(result, null, 2));
}

// Example usage:
// Option 1: Tamil HD Movies
// Option 2: Dubbed Movies
// Option 3: Web Series

listMovies('1', '2');  // Fetches the second page of Tamil HD Movies
listMovies('2');       // Fetches the first page of Dubbed Movies

Error Handling

The functions handle errors gracefully and return a structured JSON response with an error message if any error occurs during scraping.

Example Error Response

{
    "author": "HACXK",
    "github": "https://github.com/hacxk",
    "status": false,
    "results": "An error occurred while scraping TamilYogi."
}

Notes

  • Ensure the target URLs are accessible. The example URLs point to the TamilYogi website.
  • This scraper uses a mobile user agent to fetch the content.
  • The page number parameter in hacxkTamilMovie is optional.

Contributing

Contributions are welcome! Feel free to open issues or pull requests on GitHub.

License

This project is licensed under the ISC License.

Author

Feel free to contribute, raise issues, or suggest improvements. Happy scraping!