Skip to content

A web-scraping shell script that inserts information about books into a mySQL database

Notifications You must be signed in to change notification settings

macaroonforu/Web-Scraping-Shell-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Web Scraping Shell Script

Description

This shell script first acesses a catologue webpage passed as an argument. It parses the HTML for h2 tags that contain ISBNs of books.

Then, for each ISBN, it acesses that book's unique web page and converts one specific segment into a json file that is then parsed for information about the book: namely its isbn, name, and price. It then inserts the data obtained for each book into a database.

The script must always be called like this:

call

You can search different categories, for example, open source instead of web development, by changing the URL.

Here is an example of the output of the script:

output

Here is what the database looks like after the script has run:

databases

About

A web-scraping shell script that inserts information about books into a mySQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages