+ 17
[Still waiting for the answer] How can I open a google drive file with editing rights in sololearn using python?
Copying it's link and opening it,is giving an error " No such file or directory" What can I do?
16 Answers
+ 1
Rishabh check this code
https://code.sololearn.com/cF16VbWFNUKU/?ref=app
In this I have used a database which stores data permanently.
(I think this will not work right now because you have to execute a insert query under 30 days to keep a database otherwise it will be deleted)
+ 17
One of SoloLearn's great minds, Kirk Schafer managed to do it.
Take a look at the example below:
https://code.sololearn.com/cx84c2P4zMgt/?ref=app
+ 10
That's not good 😔
Let's look for someone if he/she knows it's possible.
Rei
I think it's for something else.(That I already found on Google before)
I want to create a file that is stored in google drive so that I can open it on sololearn and retrieve all it's data.
+ 10
Kuba Siekierzyński sir,
Thanks for the solution but:
As that code has too much stuff,
I've found another solution:
https://code.sololearn.com/cmg5NET5I9JP/?ref=app
(Using firebase)
But, sololearn gives only 3-4 second to run the code.
I'm able to install all the libraries but the code at the bottom is not running here.
Please tell me if any other way possible.
I just want to store my randomly generated value somewhere so that it can display it in the next turn means it keeps storing random values everytime I run it.
+ 9
Kuba Siekierzyński sir
It's a little hard for me to understand the code because I don't know much about json, ssl and socket except their name.
But, Thanks
In comments, I saw a question where he explained it but not enough for me.
Any other way possible?
I just want to store the data somewhere and also I can edit that file from here.
I was in search of this question's answer and someone told me to make a file but it cannot be opened here:
https://www.sololearn.com/discuss/2473923/?ref=app
+ 9
Sorry, my DM is not working right now.
AKSHAY
Thanks but the problem is I want it here.(means without any Other IDE)
Regarding SQL3:
I've already explored about mysqllite3 and Pickel(somewhat)but I think(means I've tried) it can't solve my problem because MySQL always will always create a new database everytime I run it and then, store its value but I can't access the previous database.
Now, I think it isn't possible other than that way that @Kuba sir has given and I'm a newbie regarding that type of codes.
So, I can't.
I've tried many ways using Google
+ 8
Look I have tried to read a file that was stored in my site...
https://code.sololearn.com/c0Zjrb0CFvk8/?ref=app
If we can write a file over internet then we can save space in our system by using file on other systems.
I am also searching for something like this. Let's see if someone knows...
+ 7
I want the editing mode too that Will store the value in google drive
Nothing can be done with it.
We've to create a file there in appending mode.
I don't just want to open the file.
Edit: 🇧🇩🇳🇴🇷'🇼🇪🇸🇹🇪🇷
Do you know how?
+ 7
i think it's not possible for other language than js (i'm referring to html not js). because you could simply insert a file with malicious code and execute it on the vm on which you're using the code.
for js is something else because you do that through html and you can't execute anything directly on the vm.
for security reasons, sololearn doesn't allow the ability to use local storage or session storage under js
+ 5
+ 5
https://www.sololearn.com/Discuss/2474728/?ref=app
You should also refer to Nasif's answer in this thread. It'll show you what to do about the link.
+ 5
I want it too!
+ 5
Kuba Siekierzyński sir can you please explain this in a short and simple code. So that we can implement this in our program/project. And can we use files stored on other server through this method??
+ 3
I don't think python will allow to write a file over the internet.
+ 1
Rishabh try this method if it can solve your problem
https://code.sololearn.com/cspGA1iOSQBK/?ref=app
Or I have an another way also ... DM me if you want to know. In that we will use a MySQL database to store your data.