Wifiphisher is a tool that uses phishing method to get access to WiFi. Using Wifiphisher, penetration testers can easily achieve a man-in-the-middle position against wireless clients by performing targeted Wi-Fi association attacks.
It uses Evil Twin Attack to make a fake AP and to block the original AP, detailed process is shown in video at the end.
Or directly copy paste the following link to clone it
Wiifphisher uses two adapters or you can say two network interfaces to work. The code might run but it will not help you getting the key unless you have two network adapters.
To install the requirements run the following command
sudo python setup.py install
Detailed video tutorial is given below