https://github.com/sweetpand/wikiracer
WikiRacer is a web crawler that tries to find the shortest path between two Wikipedia articles.
https://github.com/sweetpand/wikiracer
Last synced: 3 months ago
JSON representation
WikiRacer is a web crawler that tries to find the shortest path between two Wikipedia articles.
- Host: GitHub
- URL: https://github.com/sweetpand/wikiracer
- Owner: sweetpand
- License: mit
- Created: 2020-09-21T18:15:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T18:25:56.000Z (over 4 years ago)
- Last Synced: 2025-01-10T01:52:47.525Z (5 months ago)
- Language: Python
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WikiRacer
WikiRacer is a web crawler that tries to find the shortest path between two Wikipedia articles.***
### Requirements
The script was written in Python 2.7 and uses the `json`, `argparse`, `requests`, `BeautifulSoup`, `collections`, and `time` packages.***
### Instructions for running
The `wikiracer.py` script takes a command line argument in the form of a JSON object. The JSON object must have a `"start"` name with a string value of the starting Wikipedia article and an `"end"` name with a string value of the ending Wikipedia article.```
python wikiracer.py '{"start": "https://en.wikipedia.org/wiki/Battle_of_Cr%C3%A9cy", "end": "https://en.wikipedia.org/wiki/Wehrmacht"}
```### Example results and times
Times may vary due to internet connection.