Reader small image

You're reading from  Network Science with Python

Product typeBook
Published inFeb 2023
PublisherPackt
ISBN-139781801073691
Edition1st Edition
Right arrow
Author (1)
David Knickerbocker
David Knickerbocker
author image
David Knickerbocker

David Knickerbocker is the chief engineer and co-founder of VAST-OSINT. He has over two decades of rich experience working with and around data in his career, with his focus being on data science, data engineering, software development, and cybersecurity.
Read more about David Knickerbocker

Right arrow

Technical requirements

In this chapter, we will be using the NetworkX and pandas Python libraries. Both of these libraries should be installed by now, so they should be ready for your use. If they are not installed, you can install Python libraries with the following:

pip install <library name>

For instance, to install NetworkX, you would do this:

pip install networkx

We will also be discussing a few other libraries:

  • Requests
  • BeautifulSoup
  • Newspaper3k

Requests should already be included with Python and should not need to be installed.

BeautifulSoup can be installed with the following:

pip install beautifulsoup4

Newspaper3k can be installed with this:

pip install newspaper3k

In Chapter 4, we also introduced a draw_graph() function that uses both NetworkX and scikit-network. You will need that code whenever we do network visualization. Keep it handy!

You can find all the code for this chapter in this book’s GitHub repository...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Network Science with Python
Published in: Feb 2023Publisher: PacktISBN-13: 9781801073691

Author (1)

author image
David Knickerbocker

David Knickerbocker is the chief engineer and co-founder of VAST-OSINT. He has over two decades of rich experience working with and around data in his career, with his focus being on data science, data engineering, software development, and cybersecurity.
Read more about David Knickerbocker