[script] LINKS Wikipedia Reader. /Python UPDATED

For all your scripting needs. You can share bat/cmd/js/vba files here.
Gyder
EGG
Posts: 29
Joined: November 16th, 2016, 10:36 am
Location: France
Contact:

Re: [script] LINKS Wikipedia Reader. /Python UPDATED

Postby Gyder » May 23rd, 2018, 10:06 am

like that?

thx for your help
Attachments
jarvis port.png
jarvis port.png (25.13 KiB) Viewed 509 times

Zunair
Site Admin
Posts: 2407
Joined: January 11th, 2014, 12:29 am

Re: [script] LINKS Wikipedia Reader. /Python UPDATED

Postby Zunair » May 24th, 2018, 7:47 am

http://192.168.1.17:54657/...

Sent from my SM-G950U using Tapatalk

Gyder
EGG
Posts: 29
Joined: November 16th, 2016, 10:36 am
Location: France
Contact:

Re: [script] LINKS Wikipedia Reader. /Python UPDATED

Postby Gyder » May 24th, 2018, 9:19 am

that put this

{"request":"-1","status":0,"response":"-1","error":"Error: L'index et la longueur doivent faire référence à un emplacement situé dans la chaîne.\r\nNom du paramètre : length"}

Zunair
Site Admin
Posts: 2407
Joined: January 11th, 2014, 12:29 am

Re: [script] LINKS Wikipedia Reader. /Python UPDATED

Postby Zunair » May 31st, 2018, 7:22 am

so web service is working...
you just gota put correct action...

Sent from my SM-G950U using Tapatalk

wahyubram
EGG
Posts: 2
Joined: August 21st, 2017, 1:04 am

Re: [script] LINKS Wikipedia Reader. /Python UPDATED

Postby wahyubram » February 24th, 2019, 1:38 pm

all you need is understood python language programming...

i'm serious...

i'm start learn python 3 month ago...and one thing that i understood is programming just like interpreter work. that means how good your script is base on your knowledge.
like want to go to bathrooms but not have bathrooms words in your vocabulary coolection.

so you will ask the interpreter to say bathroom in france with something funny...

sir..can you ask him where i can get shower?

computer is really2 bad interpreter, if you not define the definition, it will ask the same like your mind.
so in interpretering process, the computer will do like you said. so good or not the script, base on your knowledge.

wikipedia is a module (like add ons), which give you result from wikipedia if you send a text to get the explanation.

pytronslinks is a module to make links easy to handle or to be automate...

so, the true process is in python.

LINKS translate voice to text, the text capture by pytronlinks module (python module), the script then run wikipedia module, asking the summary part and send it to wikipedia API. wikipedia give the summary and the python handle the Links apps by pytronlinks to TTS (text to speech) the wikipedia respon.

some error caused by, your python not have the module, like chaco_2me, no module request
to solve it, install the request module to python by put this command:
pip install request

some error causes by wikipedia scripts...and the errors is variously.
so you must handle it in python perception...

try not to thinking from LINK perception, but python perception.

you must fix the error in python...

to start fix the problem, try do this on google:
python error (paste your error respond)

example in request module error show: no request module, so..to fix it:
python error no request module
it will show many answer...and the answer is:
pip install request

how to install, i think if i read the wikipedia.py, its only receive text from another script. so the the other script that send text that capture by pytronlinks will run it. in normal way the python script run by:
python scriptname.py
in the wikipedia.py have script 'sys.argv[1]'
so the normal use is:
python wikipedia.py 'the text that you want to send to wikipedia to get respon'
example:
python wikipedia.py 'Napoleon Bonaparte'

how to make it run, i should read the another script that big probability use pytronlinks.

if me, i will learn python and make my own script.


Return to “Scripting”

Who is online

Users browsing this forum: No registered users and 3 guests