How it works

The csv and json libraries are a standard part of Python, and provide a straightforward means of reading and writing data in both formats.

pandas does not come as standard in some Python distributions and you will likely need to install it. The pandas functions for both CSV and JSON are also a much higher level in operation, with many powerful data operations available, and also with support for accessing data from remote servers.

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.