Forum Archive

How can i get input from URL ?

Raymond

How can i do action input using pythonista url, like:

pythonista3://Test.py/?action=run/

So when user click url i can get the string that in place, help me if you can.

cvp

@Raymond doc of Pythonista url scheme says

Example: pythonista://MyScript?action=run&args=foo%20bar

When you pass a single string with the args URL parameter, 
the string is split by spaces (the space is encoded as %20 here) 
and sys.argv would be [<script_path>, 'foo', 'bar'] in this example.

See MyScript without .py and usage of "&"