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...