Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download file from public link #51

Closed
chrisdkolloff opened this issue Nov 17, 2021 · 4 comments
Closed

Download file from public link #51

chrisdkolloff opened this issue Nov 17, 2021 · 4 comments

Comments

@chrisdkolloff
Copy link

Is there a way to download the content of a file via its public link? I want to access the file without having to log into my account.

Thanks!

@tomgross
Copy link
Owner

Hi @chrisdkolloff

pCloud has a (restricted) API for handling public links. Some of the methods are only accessible with pcloud.com referrers.
There is a public method for downloading public items as zip (https://docs.pcloud.com/methods/public_links/getpubzip.html)

This method is currently not implemented in pyCloud API. You have several options:

  • Implement it yourself and submit a pull request.
  • Wait until I have time and interest to implement it.
  • Pay me (or someone else) to implement it. My contact details are on my homepage: https://tomgross.github.io/

If you use and ❤️ my software, consider buying me a coffee ☕ https://www.paypal.com/paypalme/tomgross42

@tomgross
Copy link
Owner

Implemented for 1.0b1: https://pypi.org/project/pcloud/1.0b1/

@mrahjoo
Copy link

mrahjoo commented Dec 6, 2021

Thank you Tom, would you please give me a hint how to get the "code" for use with this method?

All below ways described in the website need referrer that is restricted to pcloud.com.

The code could be obtained from:
getfilepublink - link to a single file
getfolderpublink - link to a folder
gettreepublink - link to a tree
getcollectionpublink - link to a collection

@tomgross
Copy link
Owner

tomgross commented Dec 7, 2021

Hi @mrahjoo

Since these API calls are restricted the only way I know is to get the code from the web UI of pcloud (https://my.pcloud.com/) manually.

Screenshot 2021-12-07 at 21 59 52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants