<?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: Use python to download hosted feature layer as geodatabase? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1008275#M37671</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/131210"&gt;@AFackler_NAPSG&lt;/a&gt;&amp;nbsp;-&amp;nbsp; what is the error message returned?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would use a print statement on your path to make sure it's going to an actual location on your machine - additionally, are you running this locally in an ArcGIS Pro Python environment?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Peter&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 21:22:01 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-12-09T21:22:01Z</dc:date>
    <item>
      <title>Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/498829#M25144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using a script to extract attachments (photos) from a geodatabase and place them into folders named based on a field. However, these data "begin their lives" as attachments on a hosted feature layer on AGOL. Is there a script to automate the conversion of a hosted feature layer to FGDB and download it from AGOL? This would allow me to schedule and automate the entire process (which would be simply smashing!). Can anyone help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin Knight&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 22:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/498829#M25144</guid>
      <dc:creator>KevinBracy_Knight1</dc:creator>
      <dc:date>2020-09-08T22:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/498830#M25145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin, this Esri Support KB article should provide a good start:&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000022524" title="https://support.esri.com/en/technical-article/000022524"&gt;How To: Back up hosted content by looping through and downloading hosted feature services in FGDB format&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 22:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/498830#M25145</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-08T22:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1007967#M37654</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I ran into this article and tried it out on my end, but I am having issues with the layers downloading onto my machine. I got it to at least export the data and commented out the delete line to make sure they export, but I can't figure out what I'm doing wrong to have it download locally.&amp;nbsp; Do you have any guidance?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 04:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1007967#M37654</guid>
      <dc:creator>AFackler_NAPSG</dc:creator>
      <dc:date>2020-12-09T04:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1008275#M37671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/131210"&gt;@AFackler_NAPSG&lt;/a&gt;&amp;nbsp;-&amp;nbsp; what is the error message returned?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would use a print statement on your path to make sure it's going to an actual location on your machine - additionally, are you running this locally in an ArcGIS Pro Python environment?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Peter&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 21:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1008275#M37671</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-12-09T21:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1009461#M37739</link>
      <description>&lt;P&gt;Peter-&lt;/P&gt;&lt;P&gt;I was running it on PyCharm, but after running it on the Acrpy environment in Pro I was able to download the data locally. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 21:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1009461#M37739</guid>
      <dc:creator>AFackler_NAPSG</dc:creator>
      <dc:date>2020-12-14T21:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1027416#M38556</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I came across this Esri Support KB article and was wondering if there would be a way to modify it to download hosted feature services that are part of an Organization?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chuck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 00:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1027416#M38556</guid>
      <dc:creator>ChuckWerstak1</dc:creator>
      <dc:date>2021-02-17T00:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1027819#M38559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/305073"&gt;@ChuckWerstak1&lt;/a&gt;&amp;nbsp;- absolutely. You will just need to modify the search query to create a list of items in your organization. This will just look like&amp;nbsp;items = &lt;EM&gt;gis.content.search(query='')&amp;nbsp;&lt;/EM&gt;as the search is limited to only your organization by default. &lt;A href="https://support.esri.com/en/technical-article/000024383" target="_blank" rel="noopener"&gt;This great article&lt;/A&gt; by my colleague goes over the different options for searching for content with the API for Python.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1027819#M38559</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-17T21:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1162392#M45445</link>
      <description>&lt;P&gt;Hi Peter, I am running into this same issue. My folder path is correct, but the content does not download to my folder location. I am running this on ArcGIS Notebook within our ArcGIS Online Organization. I am assuming the Notebook can't access or understand my local machine folder path. Any advice to make this work?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 02:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1162392#M45445</guid>
      <dc:creator>Henry_PeleshBW</dc:creator>
      <dc:date>2022-04-08T02:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to download hosted feature layer as geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1192050#M46959</link>
      <description>&lt;P&gt;Is there a chance for you to try it in a Jupyter notebook? As you stated, I think that ArcGIS Online Notebooks don't have access to overwriting local files. The code posted here works on Jupyter &lt;A href="https://support.esri.com/en/technical-article/000022524," target="_blank"&gt;https://support.esri.com/en/technical-article/000022524,&lt;/A&gt;&amp;nbsp;kindly let me know if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 20:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-python-to-download-hosted-feature-layer-as/m-p/1192050#M46959</guid>
      <dc:creator>DianaKalil</dc:creator>
      <dc:date>2022-07-13T20:39:46Z</dc:date>
    </item>
  </channel>
</rss>

