Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Download file from password protected cloud folder

    With -net get- I can download files from a cloud folder if I create an appropriate package (.pkg) file and a stata.toc file.

    Is it possible to use this method to download files from a password protected cloud folder? Or is there any other way to use Stata commands to download files from a password protected cloud folder?

  • #2
    You're going to want to use Python's integration within Stata. Trust me, it's more than worth it. Even if you don't become a Master-Mind Pythonista, learning Python's Selenium in particular makes work like this beautiful, as well as data collection more generally since you can literally automate all your data collection assuming you're working with public data. The best part is that you can integrate the Python code straight into your do files.

    But to directly answer the question, no I don't think Stata can do this at all.

    Comment


    • #3
      An alternative is to use a shell command to call wget which would make it cross-platform and not dependent on having Python installed in controlled environments.

      Comment


      • #4
        The Wikipedia entry for URL tells us that a URL like https://username:[email protected]/file.zip will connect to a password protected site gnxl.com but will send the credentials directly, so that the gnxl.com site doesn't have to present an authentication dialog box.

        But your mileage may vary: some sites may choose to disable this capabilty.

        Comment

        Working...
        X