A Python script to check the Getting to Philosophy law.
- Run
pip install requirements.txt
- Pass the link(s) as an argument to the python script. e.g.
python script.py "https://en.wikipedia.org/wiki/Special:Random" "https://en.wikipedia.org/wiki/B_sharp_tree"
Following the chain consists of:
- Selecting all
<p>
elements, specificly the ones undermw-content-text
id. - Removing all content between brackets.
- Selecting all links that direct to existing Wiki pages (excluding links to files).
- Picking the first valid link, repeat.