nickoehler / mediafire_bulk_downloader Goto Github PK
View Code? Open in Web Editor NEWScript for bulk downloading entire mediafire folders for free using python.
License: MIT License
Script for bulk downloading entire mediafire folders for free using python.
License: MIT License
Tried to download a large folder, it creates the files and downloads the first 100 files, but then it just ignores the rest if there are any.
Currently it downloads all files over and over again even if its already present.
Can we add a possiblity to skip these files?
here is the error line 41, in get
content = response.read().decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 160: invalid start byte
Here's the error:
Downloading Dungeon Crawler Carl 05 The Butchers Masquerade.m4a
Traceback (most recent call last):
File "/mediafire_bulk_downloader/mediafire.py", line 468, in
main()
File "/mediafire_bulk_downloader/mediafire.py", line 171, in main
get_file(key, args.output)
File "/mediafire_bulk_downloader/mediafire.py", line 366, in get_file
download_file(file_data)
File "/mediafire_bulk_downloader/mediafire.py", line 438, in download_file
r.raise_for_status()
File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.mediafire.com/file/j47w9wsiqp3ddr9/Dungeon_Crawler_Carl_05_The_Butchers_Masquerade.m4a/file
I am trying to download a folder but some file names contained invalid characters (generated sometime probably before upload from the character ü
. When I download them, I get the error
Exception in thread Thread-687 (download_file):
Traceback (most recent call last):
File "C:\\\\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\\\\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\\\\mediafire.py", line 270, in download_file
with open(filename, "wb") as f:
^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: 'Fl?gel Variationen op.12.pdf'
When I download the file manually the ?
is rendered as �
.
Suggested solution: Make it replace invalid characters with something like -
.
Hello,
Thank you for this great work!
Is it possible to specify the path to download the file?
For example;
python3 mediafire.py [LINK] [download_folder_path_in_server]
Thanks
It seems it create all files from the selected directory but fill them with html code instead of what it really is.
304K One Piece --Edicion Original- Eiichiro Oda- - Tomo 001.cbr
> less *001.cbr
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>One Piece ([Edicion Original] Eiichiro Oda) - Tomo 001</title>
<meta name="keywords" content="online storage, free storage, cloud Storage, collaboration, backup file Sharing, share Files, photo backup, photo sharing, ftp replacement, cross platform, remote access, mobile access, send large files, recover files, file versioning, undelete, Windows, PC, Mac, OS X, Linux, iPhone, iPad, Android" />
<meta name="description" content="MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere." />
.......
Url:
https://www.mediafire.com/folder/9lqr9supanbno/00+inc+-+One+Piece+(Eiichiro+Oda)#r6sqg6c8odkk0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.