Skip to content

vbonifaci/westeros-crawler

Repository files navigation

Reconstructing the social network of A Game of Thrones

George R.R. Martin’s A Game of Thrones is the first novel of a popular fantasy series called A Song of Ice and Fire, which also became a popular TV show. The diagram below depicts part of the cocitation network of the books, where a link between two characters implies that they are mentioned together in several chapters. The color of the nodes of the network indicates the betweenness of the characters, which is a possible measure of how much "central" they are in the social network.

westeros vips 25 005

This project contains the Python codes used to scrape the data from the fan-created wiki A Wiki of Ice and Fire, and to construct the cocitation network of the characters in the books. The resulting network is also included in GML (Graph ML) format.

Dependencies

Python 2.7 and BeautifulSoup 4.

About

Reconstructing the social network of A Game of Thrones

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages