mega.py icon indicating copy to clipboard operation
mega.py copied to clipboard

error in the module

Open MrNom4ik opened this issue 3 years ago • 11 comments

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

MrNom4ik avatar Jun 01 '21 23:06 MrNom4ik

@MrNom4ik Hi, did you find a solution?

splendidbug avatar Nov 20 '22 20:11 splendidbug

@MrNom4ik Hi, did you find a solution?

Unfortunately no

MrNom4ik avatar Nov 20 '22 21:11 MrNom4ik

@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 avatar Nov 20 '22 21:11 splendidbug

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

splendidbug avatar Nov 20 '22 21:11 splendidbug

@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

MrNom4ik avatar Nov 20 '22 21:11 MrNom4ik

@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 avatar Nov 20 '22 21:11 splendidbug

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

splendidbug avatar Nov 20 '22 21:11 splendidbug

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

MrNom4ik avatar Nov 20 '22 22:11 MrNom4ik

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

splendidbug avatar Nov 21 '22 17:11 splendidbug

any solution so far?

reiden4444 avatar May 04 '24 08:05 reiden4444