devbret / website-internal-links

Use Python to map a website's internal links. And then apply D3 to visualize those connections as a network graph.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mapping A Website's Internal Links

Preview Of Resulting Visualization

Use Python to map a website's internal links. And then apply D3 to visualize those connections as a network graph.

Set Up

Programs Needed

Steps

  1. Install the above programs.
  2. Open a shell window (For Windows open PowerShell, for MacOS open Terminal & for Linux open your distro's terminal emulator).
  3. Clone this repository using git by running the following command; git clone https://github.com/devbret/website-internal-links.
  4. Navigate to the repo's directory by running; cd website-internal-links.
  5. Install the needed dependencies for running the script by running; pip install -r requirements.txt.
  6. Edit the app.py file on line 49, to include the website that you would like to visualize.
  7. Run the script with the command python3 app.py.
  8. To view the website's connections in the index.html file you will need to run a local web server. To do this run python3 -m http.server.

About

Use Python to map a website's internal links. And then apply D3 to visualize those connections as a network graph.


Languages

Language:HTML 80.0%Language:Python 20.0%