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

error in the module #57

Open
MrNom4ik opened this issue Jun 1, 2021 · 11 comments
Open

error in the module #57

MrNom4ik opened this issue Jun 1, 2021 · 11 comments

Comments

@MrNom4ik
Copy link

MrNom4ik commented Jun 1, 2021

Unfortunately, the developers abandoned the project, so I hope for other users ...

Hello! If I want to import another public folder to my cloud drive, then I get the following error:

raise RequestError ('Url key missing') File "/python3.8/site-packages/mega/errors.py", line 58, in __init__ code_desc, long_desc = _CODE_TO_DESCRIPTIONS [code] KeyError: 'Url key missing'

The code I'm using:

mega = Mega()
m = mega.login ('', '')
m.import_public_url('https://mega.nz/folder/XEIz0aAK#9IE-2N7XUlWNkcbiDmnWsw')

As far as I understand, this error is in the mega.py module itself, if you know how to fix it, then answer me, the question will always be relevant

@splendidbug
Copy link

@MrNom4ik Hi, did you find a solution?

@MrNom4ik
Copy link
Author

@MrNom4ik Hi, did you find a solution?

Unfortunately no

@splendidbug
Copy link

@MrNom4ik Is there any other way I can import a public folder? The only option I see is to download an upload a folder.

@splendidbug
Copy link

Or else I can use selenium and import by showing in UI. Downloading and uploading would take a lot of time

@MrNom4ik
Copy link
Author

@MrNom4ik Is there any other way I can import a public folder? The only option I see is to download an upload a folder.

I don't know, I didn't find another way to copy the folder, if you use the download method, then there may be a problem with lack of space on your disk

@splendidbug
Copy link

@MrNom4ik Is there any other way I can import a public folder? The only option I see is to download an upload a folder.

I don't know, I didn't find another way to copy the folder, if you use the download method, then there may be a problem with lack of space on your disk

Yeah, that's a problem too

@splendidbug
Copy link

is there any way we can get URLs of individual files in a public folder?

@MrNom4ik
Copy link
Author

is there any way we can get URLs of individual files in a public folder?

I just tried to fix the library, and I realized that it is outdated for the current api mega.nz, there are no more ways in this library how get URLs of individual files in a public folder. I will continue trying to fix the library

@splendidbug
Copy link

Ohh okay. Thank you very much. Please let me know i there are any updates

@reiden4444
Copy link

any solution so far?

@de545
Copy link

de545 commented May 29, 2024

I suppose this module is somehow outdated and is no longer supported. Seems like mega had some updates in the meantime.

Also, unfortunately it does not support 3.11, with that in mind, we will have to search for another solution.

edit:
found an SOLUTION. Change your links to v1.

url = line.strip().replace("#", "!").replace("/folder/", "/folder/#!")
from https://mega.nz/folder/fileID#key
to https://mega.nz/folder/#!fileID!key

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

5 participants
@splendidbug @MrNom4ik @reiden4444 @de545 and others