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':
<SPAN class="keyword token">import</SPAN> ago
<SPAN class="keyword token">import</SPAN> urllib
<SPAN class="keyword token">import</SPAN> zipfile
<SPAN class="keyword token">import</SPAN> json<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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 <SPAN class="operator token">=</SPAN> ago<SPAN class="punctuation token">.</SPAN>AGOLHelper<SPAN class="punctuation token">(</SPAN>portal_url<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">print</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="string token">"...Authenticating against your Portal "</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># login</SPAN>
agol_helper<SPAN class="punctuation token">.</SPAN>login<SPAN class="punctuation token">(</SPAN>credentials<SPAN class="punctuation token">[</SPAN><SPAN class="string token">'userName'</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN> credentials<SPAN class="punctuation token">[</SPAN><SPAN class="string token">'passWord'</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Anybody know what this script is and how to make it work? Where do I find the ago we really need?