Skip to content

[BETA] Nodes with Images

DeadlyCoconuts edited this page Jun 16, 2019 · 2 revisions
overview2

Try it out here!

I've just begun working on a new functionality to represent each node by an image derived from its Wikipedia page. The files that I am working on are separate kept in the branch graph-with-pictures[beta] so as to not mess around with the stable release in the main branch.

The main files that have been changed are process_link.py and script.js. The web scraping process now involves pulling source URLs of images from Wikipedia pages, which will then be used as nodes in the graph. Unfortunately, this has created several issues:

  • (Much) longer web scraping times aka lower scraping speeds
    This hinders overall performance and more importantly, causes the web application uploaded on Google App Engine to have most of its requests terminated prematurely (since even the simplest of requests take longer than 30 seconds). For the moment, please do most of your testing on your development server.

  • Problems in selecting the right image (or none) to represent a page/node
    More work has to be done in selecting the right thumbnail and not random images to be used as a node in the graph. Issues with image cropping/ transparency need to be dealt with too.

As of present, I am trying to create a circular border around each node that changes colour accordingly (just like in the previous release).

Clone this wiki locally