Skip to content

christullier/wiki-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiki-Solver

What does it do?

  1. Takes two (usually random) wikipedia articles as input
  2. Finds a path between them, using only wiki links starting on those pages
  3. Prints the path between the two articles

How to run

  • run main.py
  • type in wikipedia links
    • they can be either a wiki link or the title of an article
    • quotes are necessary for command line args if the title has spaces

Examples:

Normal:

> python main.py
starting link: https://en.wikipedia.org/wiki/Avengers_(comics)
ending link: The Room
Searching...

Avengers_(comics)
Captain America: The First Avenger
Chris Evans (actor)
James Franco
The Room

Command line args:

> python main.py "Elon Musk" Muskrat
Searching...

Elon Musk
Mars Society
California
Utah
Muskrat

Discord Bot

Include a file titled ".env" in your working directory with the token set like this: TOKEN=<discord token>

Docker

> docker run -e TOKEN=<discord token> christullier/testbot

  • this has only been tested on a Raspberry Pi 3b

Da Rules:

Made using Python 3.9.2

About

beats the wikipedia game so you don't have to

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages