How To Install libweb-scraper-perl on Kali Linux

In this tutorial we learn how to install libweb-scraper-perl on Kali Linux. libweb-scraper-perl is Web Scraping Toolkit using HTML and CSS Selectors or XPath expressions

Introduction

In this tutorial we learn how to install libweb-scraper-perl on Kali Linux.

What is libweb-scraper-perl

libweb-scraper-perl is:

Web::Scraper is a web scraper toolkit, inspired by Ruby’s equivalent Scrapi. It provides a DSL-ish interface for traversing HTML documents and returning a neatly arranged Perl data strcuture.

The scraper and process blocks provide a method to define what segments of a document to extract. It understands HTML and CSS Selectors as well as XPath expressions.

There are three methods to install libweb-scraper-perl on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libweb-scraper-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libweb-scraper-perl using apt-get by running the following command:

sudo apt-get -y install libweb-scraper-perl

Install libweb-scraper-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libweb-scraper-perl using apt by running the following command:

sudo apt -y install libweb-scraper-perl

Install libweb-scraper-perl Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libweb-scraper-perl using aptitude by running the following command:

sudo aptitude -y install libweb-scraper-perl

How To Uninstall libweb-scraper-perl on Kali Linux

To uninstall only the libweb-scraper-perl package we can use the following command:

sudo apt-get remove libweb-scraper-perl

Uninstall libweb-scraper-perl And Its Dependencies

To uninstall libweb-scraper-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libweb-scraper-perl

Remove libweb-scraper-perl Configurations and Data

To remove libweb-scraper-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libweb-scraper-perl

Remove libweb-scraper-perl configuration, data, and all of its dependencies

We can use the following command to remove libweb-scraper-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libweb-scraper-perl

Dependencies

libweb-scraper-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libweb-scraper-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.