Skip to content

Webpage Scraper uses x-ray web scraping package that fetches the webpages and extracts data from them asynchronously.

Notifications You must be signed in to change notification settings

0xmohitsen/fileverse_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpage Anchor Tag Scraper

This Node.js script scrapes anchor tags (links) from a webpage and extracts their titles and href attributes using the x-ray package.

Table of Contents

Introduction

This script allows users to scrape anchor tags (links) from a webpage and extract their titles and href attributes. It provides a simple command-line interface (CLI) for specifying the URL of the webpage to be scraped.

Prerequisites

Before using this script, ensure you have the following prerequisites installed:

Installation

  1. Fork and Clone the Repository

    git clone https://github.com/Mohitsen11/fileverse_task.git
  2. Navigate to the Directory

    cd fileverse_task
  3. Install Required Dependencies

    npm i

Usage

  • To use the script, run the following command in your terminal:
node index.js <URL>

Example

  • Example of how to use the script with a specific URL.
  • Replace with the URL of the webpage you want to scrape.
node index.js https://example.com

About

Webpage Scraper uses x-ray web scraping package that fetches the webpages and extracts data from them asynchronously.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published