Python Wikipedia API.mini Encyclopedia

BLOG

Python Wikipedia API.mini Encyclopedia

Use python speech, and wikipedia API together to make your computer speak whatever you search on wikipedia! So, in short, it is your mini encyclopedia!!
Code :
import json
import speech
import wikipedia

query = speech.input(“say something”)
print query
print wikipedia.summary(query, sentences=2)
speech.say(wikipedia.summary(query, sentences=2))

DONT YOU DARE NOT GIVE ME CREDIT!!! 😛
kidding. if you liked the video, and ever use the code, just mention me somewhere thanks 🙂 !