Try something like
import requests
import json
url =
"https://nominatim.openstreetmap.org/search.php?q=city+country&format=json&l
imit=1"
result = requests.get(url)
dataobj = result.json()
x = dataobj[0]['lat'] + "," + dataobj[0]['lon']
print(x)
-Original Message-
From: Python-list On
I see it does not like spaces in the file name
-Original Message-
From: legau...@gmail.com
Sent: Friday, February 14, 2020 7:55 AM
To: 'Bheesham Persaud' ; python-list@python.org
Subject: RE: ghostscripts in python with watchdog
I'm not sure what happens, when I'm testing and suddenly I
I'm not sure what happens, when I'm testing and suddenly I will start
getting this error.
Error: /undefinedfilename in (1)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostr
I'm trying to use ghostscripts with python watchdog.
I want to duplicate the last page of a pdf to another directory using the
same name as the source pdf + page number.
So watchdog will monitor the directory for the pdf and ghostscript will copy
the last page to another directory.
I have this,