tomgross / pcloud

A Python implementation of the pCloud API
MIT License
95 stars 28 forks source link

Option of downloading from pcloud URLs #87

Closed digitalray closed 11 months ago

digitalray commented 11 months ago

I was given a folder with a link such as this: https://filedn.com/someid123/. There are folders there. I was wondering if there is a way to download the contents of the folders. The http request give the paths of all the links to the files relative to where they are as a javascript json:

<script>
  var directLinkData={
    "code": "someid",
    "dirpath": "\/folder\/",
    "content": [
        {
            "name": "folder 1",
            "urlencodedname": "folder%201",
            "modified": "Sat, 01 May 2021 00:11:15 +0000",
            "icon": 20
        },
        {
            "name": "file 1.zip",
            "urlencodedname": "file%201.zip",
            "size": 618731497,
            "modified": "Wed, 30 Aug 2023 23:57:48 +0000",
            "icon": 5
        }
    ]
};
</script>

Thanks

digitalray commented 11 months ago

I guess it would be easier to just write a quick script and scrape the links then download. I'll close this issue.