Skip to content

Quickly assess web scraping feasibility. CLI tool checks if sites rely on JavaScript rendering. Powered by Puppeteer. Save time, target better.

License

Notifications You must be signed in to change notification settings

MuLIAICHI/website-js-rendering-checker-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Website JavaScript Rendering Checker CLI

A simple command-line tool to check if a website uses JavaScript rendering.

Table of Contents

About

This CLI tool uses Puppeteer to load a website, capture its content before and after disabling JavaScript, and then compares the content to determine if the website relies on JavaScript rendering.

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/website-js-rendering-checker-cli.git
    cd website-js-rendering-checker-cli
    
  2. Install dependencies:

npm install puppeteer commander

Usage

Run the CLI tool with the -u or --url option followed by the URL of the website you want to check.

./cli.js -u https://www.example.com

Options

  1. -u, --url : This option allows the user to specify the URL of the website they want to check. The -u is the short form, and --url is the long form of the option. The part indicates that the user should replace it with an actual URL.
  • Example usage with the short form: ./cli.js -u https://www.example.com
  • Example usage with the long form: ./cli.js --url https://www.example.com The (required) annotation in the README indicates that providing a value for this option is mandatory when running the command. Users must specify a URL for the tool to work properly.
  1. Other options: Depending on the functionality you want to provide in your tool, you can add more options similarly. For example, you might consider adding options like:

-t, --timeout : Specify the timeout for page loading (in milliseconds). -h, --help: Show help information about how to use the tool. -v, --version: Show the version of your tool.

Examples

./cli.js -u https://www.example.com

Dependencies

  • Puppeteer : Headless Chrome Node.js API to interact with the website.

License

This project is licensed under the MIT License.

About

Quickly assess web scraping feasibility. CLI tool checks if sites rely on JavaScript rendering. Powered by Puppeteer. Save time, target better.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published