<?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 Downloading .h5 file with urllib in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-h5-file-with-urllib/m-p/348248#M20016</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I recently uploaded a 4gb .h5 file onto dropbox under this url:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When I try to download it using urllib in python 3:&lt;/P&gt;
&lt;P&gt;file_url = '&lt;A href="https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0&lt;/A&gt;'&lt;/P&gt;
&lt;P&gt;file_name = 'recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-&amp;nbsp; &amp;nbsp; neurons_bpf_25-03-2019.h5'&lt;/P&gt;
&lt;P&gt;urllib.request.urlretrieve(file_url, file_name)&lt;BR /&gt;&lt;BR /&gt;It downloads a&amp;nbsp;226K file that can't be parsed. Any idea what the issue might be or what I am doing wrong here? I can download the file normally by pressing the download button on the dropbox page.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Cole Hurwitz&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 09:54:46 GMT</pubDate>
    <dc:creator>colehurwitz</dc:creator>
    <dc:date>2019-07-16T09:54:46Z</dc:date>
    <item>
      <title>Downloading .h5 file with urllib</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-h5-file-with-urllib/m-p/348248#M20016</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I recently uploaded a 4gb .h5 file onto dropbox under this url:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When I try to download it using urllib in python 3:&lt;/P&gt;
&lt;P&gt;file_url = '&lt;A href="https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/1jolgsw5kgxmsd5/recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-neurons_bpf_25-03-2019.h5?dl=0&lt;/A&gt;'&lt;/P&gt;
&lt;P&gt;file_name = 'recordings_300_SqMEA-10-15um_minamp0_60s_10uV_far-&amp;nbsp; &amp;nbsp; neurons_bpf_25-03-2019.h5'&lt;/P&gt;
&lt;P&gt;urllib.request.urlretrieve(file_url, file_name)&lt;BR /&gt;&lt;BR /&gt;It downloads a&amp;nbsp;226K file that can't be parsed. Any idea what the issue might be or what I am doing wrong here? I can download the file normally by pressing the download button on the dropbox page.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Cole Hurwitz&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 09:54:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-h5-file-with-urllib/m-p/348248#M20016</guid>
      <dc:creator>colehurwitz</dc:creator>
      <dc:date>2019-07-16T09:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading .h5 file with urllib</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-h5-file-with-urllib/m-p/348263#M20018</link>
      <description>&lt;P&gt;That URL is actually for a preview web page for the file, not the file data itself. (The short file you're getting back is probably the HTML page itself.)&lt;/P&gt;
&lt;P&gt;You can modify these shared links for direct file access if you need though. You can find information on doing so here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.dropbox.com/desktop-web/force-download" target="_blank" rel="noopener"&gt;https://help.dropbox.com/desktop-web/force-download&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:18:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-h5-file-with-urllib/m-p/348263#M20018</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-06-05T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading .h5 file with urllib</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-h5-file-with-urllib/m-p/348413#M20026</link>
      <description>&lt;P&gt;Thanks so much! This worked.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 10:33:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-h5-file-with-urllib/m-p/348413#M20026</guid>
      <dc:creator>colehurwitz</dc:creator>
      <dc:date>2019-06-06T10:33:06Z</dc:date>
    </item>
  </channel>
</rss>

