- [Instructor] Hi, and welcome to the next video
of section five,
Parsing Data from a Website.
In the previous video, we have
seen about a primer on Curl.
In this video, we'll see how we can parse
the same data by using text processing tools.
It is often useful to parse data from web pages
by eliminating unnecessary details.
Sed and orc are the main tools
that we will use for this task.
Let's go through the commands used to parse details
of actresses from their website.
The output will be as follows.
Lynx is a command line web browser.
It can dump a text version of a website
as we would see it in a web browser,
rather than showing us the raw code.
Hence, we can avoid the job of removing the HTML text.
We use the -nolist option for Lynx,
as we don't need the numbers
that it adds automatically with each link.
Parsing and formatting that contain rank,
is done by using sed, as follows.
These lines are then sorted according to the ranks.
Awesome, we have successfully learned
how to parse data from a website.
In the next video, we'll learn about
Image Crawler and Downloader.