<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Basic Python Question in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235433#M18296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to everyone for your help! I don't know that the API is an option just yet but I am still reading through all of the information on it as well as the links Randy and Jake were kind enough to share with me. I have gathered a few snippets of code here and there that I hope to stitch together into a working script. I will update back here when there are developments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 13:02:35 GMT</pubDate>
    <dc:creator>TiffanyRufo</dc:creator>
    <dc:date>2017-04-28T13:02:35Z</dc:date>
    <item>
      <title>Basic Python Question</title>
      <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235428#M18291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you get the script you are writing to look at data in an AGOL feature layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am brand new to Python and am trying to write a script that will send out an email notification to specific departments and individuals based on the type of report/complaint. I know that I need it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;query the database for new reports&lt;/LI&gt;&lt;LI&gt;Sort the new reports based on report type&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Send a notification to specific individuals based on that report type. (Example:if it is a pothole complaint send it to our street department guys)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have seen several different threads about this same thing with snippets of code here and there, but I haven't found anything about how you direct python to an AGOL feature layer to get the data to start with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that this is a pretty in-depth scripting project for an absolute beginner, but I don't really want anyone to write it for me I would very much like to learn how to write this myself if possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this&amp;nbsp;&lt;A class="link-titled" href="http://ginstrom.com/code/mailer.html" title="http://ginstrom.com/code/mailer.html"&gt;GITS :: Code :: mailer&lt;/A&gt;&amp;nbsp; that I would like to use for the email portion, I just need to write the query section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or direction to resources would be greatly appreciated. I don't think I know the correct keywords to search for to find what I need.... Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235428#M18291</guid>
      <dc:creator>TiffanyRufo</dc:creator>
      <dc:date>2017-04-27T13:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Python Question</title>
      <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235429#M18292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would start by spending some time reading up on and getting familiar with the &lt;A href="https://developers.arcgis.com/python/"&gt;ArcGIS API for Python&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;H2 class="" style="font-weight: 300; font-style: normal; margin: 1.55rem 0px; font-size: 1.9994rem; line-height: 2.325rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Script and automate your Web GIS&lt;/H2&gt;&lt;P style="margin-top: 0px; margin-bottom: 1.55rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;The ArcGIS API for Python lets ArcGIS Online and ArcGIS Enterprise users, analysts, developers and administrators script and automate tasks ranging from performing big data analysis to content management and administration of their web GIS. The API integrates well with the &lt;A href="https://jupyter.org/" style="color: #0079c1; text-decoration: none;"&gt;Jupyter Notebook&lt;/A&gt; and the &lt;A href="https://www.scipy.org/" style="color: #0079c1; text-decoration: none;"&gt;SciPy&lt;/A&gt; stack and enables academics, data scientists, and GIS analysts to share programs and reproducible research with others.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235429#M18292</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-04-27T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Python Question</title>
      <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235430#M18293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I second Joshua's comment on the ArcGIS API for Python.&amp;nbsp; I would check out some of the tech session/presentations available (free)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.esri.com/videos/search?q=python%20api#?sortby=relevance&amp;amp;channels=esri,Events,ArcGIS,Industries,ArcGIS,esri" title="http://www.esri.com/videos/search?q=python%20api#?sortby=relevance&amp;amp;channels=esri,Events,ArcGIS,Industries,ArcGIS,esri"&gt;E360 Video Search | Esri Videos&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The nice thing about this API and the Jupyter Notebook is you can try it out online first, without installing.&amp;nbsp; I have only played with the administration side for AGOL, but it looks like it has a lot of potential for future use. (my opinion)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 16:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235430#M18293</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-04-27T16:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Python Question</title>
      <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235431#M18294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tiffany,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Python API will definitely make accessing the service easier, but also here is a post on how to do this using Python 2.x:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/675306"&gt;https://community.esri.com/message/675306&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 19:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235431#M18294</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-04-27T19:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Python Question</title>
      <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235432#M18295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest looking at the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/"&gt;ArcGIS REST API&lt;/A&gt;.&amp;nbsp; (To query, see the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Query_Feature_Service_Layer/02r3000000r1000000/"&gt;Query (Feature Service/Layer) &lt;/A&gt;in the Your Services &amp;gt;&amp;gt; Feature Service section.)&amp;nbsp; You may also find the &lt;A href="https://github.com/Esri/ArcREST"&gt;github ArcREST&lt;/A&gt;&amp;nbsp;files helpful.&amp;nbsp; This thread may also be of help: &lt;A _jive_internal="true" href="https://community.esri.com/thread/182963-arcrest-vs-arcgis-python-api"&gt;ArcREST vs ArcGIS Python API&lt;/A&gt;.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 20:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235432#M18295</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-04-27T20:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Python Question</title>
      <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235433#M18296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to everyone for your help! I don't know that the API is an option just yet but I am still reading through all of the information on it as well as the links Randy and Jake were kind enough to share with me. I have gathered a few snippets of code here and there that I hope to stitch together into a working script. I will update back here when there are developments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235433#M18296</guid>
      <dc:creator>TiffanyRufo</dc:creator>
      <dc:date>2017-04-28T13:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Python Question</title>
      <link>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235434#M18297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found out how to do it (get a script to search a feature Layer in AGOL) Download and use ArcREST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import arcrest


#get reference to your feature layer Rest endpoint

fl = arcrest.agol.FeatureLayer(url='your/urlrestendpoint/0')&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-python-question/m-p/235434#M18297</guid>
      <dc:creator>TiffanyRufo</dc:creator>
      <dc:date>2021-12-11T11:52:30Z</dc:date>
    </item>
  </channel>
</rss>

