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

How to download files #7

Open
atleta opened this issue Feb 2, 2017 · 4 comments
Open

How to download files #7

atleta opened this issue Feb 2, 2017 · 4 comments

Comments

@atleta
Copy link
Contributor

atleta commented Feb 2, 2017

The documentation doesn't mention it, but the files can't be downloaded without authentication. Providing the API key doesn't seem to be enough (at least the fetch_url returns a 404, just as an unauthenticated session in the browser). I hope we don't have to resort to password authentication (or worse, having to simulate a log in). What's the solution here?

@amcsparron2793
Copy link

any progress on this?

@amcsparron2793
Copy link

amcsparron2793 commented Sep 28, 2020

this is obviously a super old issue, but i've found that this, seems to work,

r = requests.get(x, allow_redirects=True, params={'apiKey': 'xxxxxxxxxxxxxx12345678987654321}) # open the binary that is downloaded and stored as r, as the last chunk of y # (each chunk is defined by a slash in the url) # and write it to file open('./output/Missed_Files/' + (str(y.rsplit('/', 1)[1])), 'wb').write(r.content)

i find it super odd that the jotform API doesn't work though...

@GrantNagel
Copy link

@amcsparron2793 Hi there, I have been trying to get this to work as our data cannot be publicly accessible. I'm having to simulate a log in through requests via python but am having a lot of issues.

Is there any chance you could share your full obfuscated code so I can replicate in our python environment?

Thanks

@amcsparron2793
Copy link

amcsparron2793 commented Sep 20, 2023

@amcsparron2793 Hi there, I have been trying to get this to work as our data cannot be publicly accessible. I'm having to simulate a log in through requests via python but am having a lot of issues.

Is there any chance you could share your full obfuscated code so I can replicate in our python environment?

Thanks

@GrantNagel It's been quite a while since I wrote this, I don't know if I have any of the underlying code still around. send me a message and id be happy to troubleshoot with you though!

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