Getting To Philosophy is a simple python script created to find a path between a given Wikipedia article and the article on Philosophy. This is inspired by the Wikipedia article appropriately named Getting to Philosophy which contains its origins and history.
$ git clone https://github.com/MrJHBauer/Wikipedia-Philosophy.git
Getting To Philosophy requires two python modules requests and BeautifulSoup4
$ pip install requests
$ pip install beautifulsoup4
Default depature article /wiki/J/22 is used if no command line argument is passed. To define your own depature article pass the last part of the url /wiki/article_name as a command line argument.
$ python3 getting_to_philosophy.py
Visiting: /wiki/Keel
Visiting: /wiki/Fluid_dynamics
Visiting: /wiki/Physics
Visiting: /wiki/Natural_science
Visiting: /wiki/Science
Visiting: /wiki/Knowledge
Visiting: /wiki/Awareness
Visiting: /wiki/Conscious
Visiting: /wiki/Quality_(philosophy)
Visiting: /wiki/Philosophy
$ python3 getting_to_philosophy.py /wiki/Python
Visiting: /wiki/High-level_programming_language
Visiting: /wiki/Computer_science
Visiting: /wiki/Computation
Visiting: /wiki/Calculation
Visiting: /wiki/Arithmetic
Visiting: /wiki/Number
Visiting: /wiki/Mathematical_object
Visiting: /wiki/Abstract_object
Visiting: /wiki/Referent
Visiting: /wiki/Linguistics
Visiting: /wiki/Science
Visiting: /wiki/Knowledge
Visiting: /wiki/Awareness
Visiting: /wiki/Conscious
Visiting: /wiki/Quality_(philosophy)
Visiting: /wiki/Philosophy
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D