AnsweredAssumed Answered

import ago?

Question asked by jborgion Champion on May 27, 2020
Latest reply on May 28, 2020 by jborgion

We downloaded as script from this location: https://survey123.maps.arcgis.com/home/item.html?id=c8411764ea614f208ba2e5a933a068b8 ; it's a data download utility.  At any rate it uses a module I'm not familiar with called 'ago':

import ago
import urllib
import zipfile
import json

 

I tried to use the ArcGIS Pro package installer and it acts like it installs, but when I try to import I'm told it dosen't exist.  So I tried an anaconda install from the command line and it can't find the package in the in the typical channels.

 

 

When I look for it on the Anaconda cloud, it sends me to: Bitbucket   where it is described as 'human readable time deltas' which I can't see how that's going to generate  a token as the script itself has it doing: 

 

agol_helper = ago.AGOLHelper(portal_url)
print ("...Authenticating against your Portal ")
# login
agol_helper.login(credentials['userName'], credentials['passWord'])

Anybody know what this script is and how to make it work?  Where do I find the ago  we really need?

Outcomes