Wikipedia module in python :- • Wikipedia Module Using Python with New Lea...
Source Code::
main.py-
import googletrans
suggested by codewitharpit is from googletrans import Translator, LANGUAGES
from googletrans import Translator, LANGUAGES
cunstucter = Translator()
work = cunstucter.translate("आप कौन हैं?, और एक वेबसाइट से क्या फर्क पड़ता है", dest="pa")
print(work)
project.py-
from googletrans import Translator
q = input("Text :- ")
lan = input("Langoage :- ")
cunstucter = Translator()
work = cunstucter.translate(q, dest=lan)
print(work.text)
--------pip install googletrans==3.1.0a0