O'Reilly logo

Instant Web Scraping with Java by Ryan Mitchell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Persisting data (Advanced)

While watching data stream down a console is fun, it is nearly useless unless you're storing the data for useful applications. Being able to store, retrieve, manipulate, and display data is an inescapable component of web scraping. In this section, we will show you how to store data in a MySQL database.

Getting ready

Although PostgreSQL, MongoDB, and a multitude of other database types are increasingly used, MySQL is still ubiquitous in the industry, and, partly because of its ownership by Oracle, it has fantastic support in Java. We will be using MySQL throughout this book, but feel free to substitute your own database syntax wherever appropriate.

Java's JDBC (Java Database Connectivity) API provides a way for Java to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required