Live data from Hacker News

Show HN: Six Degrees of Wikipedia

sixdegreesofwikipedia.com

111–120 of 354 posts

Re: Show HN: Six Degrees of Wikipedia

#111

Age of Enlightenment -> Consumption of Tide Pods[0] [0] https://www.sixdegreesofwikipedia.com/?source=Age%20of%20Enl...

Interestingly, if you go the other way it blows up: [0] https://www.sixdegreesofwikipedia.com/?source=Consumption%20...

I'd assume very few articles lead in to "Consumption of Tide Pods", while many do to "Age of Enlightenment".

Re: Show HN: Six Degrees of Wikipedia

#112
post #92

Earlier quoted context omitted.

make it so that if I visit the page and just click the "go" button, it will use the placeholder examples as the start and end points. i did this and got an error message stating "You'll probably want to choose the start and end pages before you hit that." that was annoying. the placeholders that were auto chosen were actually really interesting.

'Please' and 'thank you' go a long when requesting additional features for an OSS project.

[deleted]

Re: Show HN: Six Degrees of Wikipedia

#113
post #92

Earlier quoted context omitted.

make it so that if I visit the page and just click the "go" button, it will use the placeholder examples as the start and end points. i did this and got an error message stating "You'll probably want to choose the start and end pages before you hit that." that was annoying. the placeholders that were auto chosen were actually really interesting.

'Please' and 'thank you' go a long when requesting additional features for an OSS project.

It's a suggestion, not a request and a good one at that. So who should be saying 'thank you' here (if anyone)?

Re: Show HN: Six Degrees of Wikipedia

#114
post #93

Not sure if you deliberately designed it this way, but I noticed when spot checking some results that it includes the bibliography section links as connections. This seems like it may not be desirable. Example, I did a search that went from the Crusades to Buzz Aldrin and I noticed that Routledge was the first hop from the Crusades. It strikes me as odd that Routledge (a publishing company) would be mentioned on the…

Yeah unfortunately I don't know of any way to differentiate the different types of links. Wikipedia's pagelinks database doesn't different them. I agree it's undesireable but I just cannot figure out how to cull them.

I'm not sure how the backend is structured, but it seems that you must parse the individual pages at some point or another. I took a quick look at the Wikipedia HTML for a few pages and I would suggest stripping out anything within (or nested inside) of classes like "mw-cite-backlink", "reference-text", "citation book", "citation journal", etc. Also, you can probably strip out anything inside of a HTML tag.

I'm sure there are more classes and tags, but that hopefully should give you a solid place to start.

EDIT - You can also strip out or ignore anything inside of the ordered list for references - ...

Also, some pages aren't documented in the same way, so something like this page - https://en.wikipedia.org/wiki/X_Window_System - doesn't have any classes or easy way to parse it for the References section even though the Notes section was set up in a more organized way. However, you could take note that the tag contains class="mw-headline" id="References" and the text value is also References and then ignore everything until the next begins.

Re: Show HN: Six Degrees of Wikipedia

#115
post #92

Earlier quoted context omitted.

make it so that if I visit the page and just click the "go" button, it will use the placeholder examples as the start and end points. i did this and got an error message stating "You'll probably want to choose the start and end pages before you hit that." that was annoying. the placeholders that were auto chosen were actually really interesting.

'Please' and 'thank you' go a long when requesting additional features for an OSS project.

[deleted]

Re: Show HN: Six Degrees of Wikipedia

#116
post #92

Earlier quoted context omitted.

make it so that if I visit the page and just click the "go" button, it will use the placeholder examples as the start and end points. i did this and got an error message stating "You'll probably want to choose the start and end pages before you hit that." that was annoying. the placeholders that were auto chosen were actually really interesting.

'Please' and 'thank you' go a long when requesting additional features for an OSS project.

Please use "Please" when you are requesting more work from OSS, OR even better, make the change yourself and how all of us how it should be done.

Re: Show HN: Six Degrees of Wikipedia

#117
post #108
post #13

Creator here. Six Degrees of Wikipedia is a side project I've been sporadically hacking on over the past few years. It was an interesting technical challenge and it's fun to play with the end result. Here's the tech stack: * Frontend: React (Create React App) * Backend: Python Flask * Database: SQLite * Web (frontend) hosting: Firebase Hosting * Server (backend) hosting: Google Compute Engine (it runs fine on a tiny…

Great work! Do you simply do a BFS to find the shortest paths? If so, are you doing any tricks to avoid the path explosion problem?

It is bidirectional BFS: https://github.com/jwngr/sdow/blob/master/sdow/breadth_first...

A* can't be used given that path cost or expected remaining distance is unknown.

Any ideas on how such an algorithm could be used without precomputing the entire graph?

Re: Show HN: Six Degrees of Wikipedia

#118
post #13

Creator here. Six Degrees of Wikipedia is a side project I've been sporadically hacking on over the past few years. It was an interesting technical challenge and it's fun to play with the end result. Here's the tech stack: * Frontend: React (Create React App) * Backend: Python Flask * Database: SQLite * Web (frontend) hosting: Firebase Hosting * Server (backend) hosting: Google Compute Engine (it runs fine on a tiny…

The UX design is very well executed. This feels so polished. The floating graphs in the background, the individual paths under the chart, etc. It's all very well done with lots of little flourishes. Makes me want to up my game. Thanks for sharing.

Re: Show HN: Six Degrees of Wikipedia

#119
Incidentally, it´s a good way to find incorrect ambiguous wikilinks. [[Comparison of web browsers]] shouldn´t link directly to [[Gnome]], which is the article about small mythologic humanoids, not about the desktop environment.
Post reply on HN