Spider to verify that every term in Wikipedia is related to the Philosohy page.
It is a fun tool to create a list of related concepts.
Input a term (in English) that corresponds to the path (without the /wiki) in the URL of a Wikipedia page.
For example: 'Ruby' or 'Information_extraction'
For 'Ruby' the spider clicks the first hyperlink found in the content area. Eventually it will land in the Phylosophy page.
There are some issues with disambiguation pages Some loops can occurs. It is to solve in the future with more time ;)
PS: Sorry in advance!, it was developed in 2011, so it uses still HPRICOT gem.
$ ruby wikispider/wikispider.rb
Term: Ruby
Starting search for Ruby
- Ruby
- Gemstone
- Crystal
- Solid
- State_of_matter#The_four_fundamental_states
- Physics
- Natural_science
- Science
- Knowledge
- Fact
- Evidence
- Logical_assertion
- Logic
- Logical_form
- Proposition
- Analytic_philosophy
- Philosophy