Visualize Wikipedia Relationships
Explore the tree-like structure representing the relationships between Wikipedia articles. The application updates in real time as it crawls through new links. It also stores the article titles in a text file for later reference.
- Clone the repository
git clone https://github.com/visvig/wikipedia-universe.git cd wikipedia-universe
- Check and install dependencies
python check_deps.py
- Run the Application
python app.py
- Access the Application
Open your browser and navigate to
http://127.0.0.1:8050/
You can customize the crawling behavior or visualization by editing the following:
-
Graph Layout:
Customize the graph layout by modifying thelayout
property of theCytoscape
component inapp.py
.Example:
layout={'name': 'breadthfirst'} # Change to 'cose', 'grid', etc., as per preference
-
Starting Article:
You can change the starting article that the crawler uses by modifying thestart_title
variable in thebackground_crawler
function inapp.py
.Example:
start_title = "Artificial Intelligence" # Replace with any Wikipedia article title
-
Crawling Depth:
Adjust the depth of the Wikipedia crawler in thebackground_crawler
function inapp.py
.depth = 2 # Set the desired depth of the crawl
This project is licensed under the MIT License.
You are free to use, modify, and distribute the code as per the terms of the license.
See the LICENSE file for more details.