glumia / openload_dl Goto Github PK
View Code? Open in Web Editor NEWA python library and CLI tool to download files from openload.co
License: MIT License
A python library and CLI tool to download files from openload.co
License: MIT License
Using Ubuntu 14.04 32 Bit
Latest Firefox & https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux32.tar.gz
Error is
Traceback (most recent call last):
File "/usr/local/bin/openload-dl", line 95, in
browser=webdriver.Firefox(firefox_options=fox_opt)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in init
keep_alive=True)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 319, in execute
response = self.command_executor.execute(driver_command, params)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/remote_connection.py", line 374, in execute
return self._request(command_info[0], url, body=data)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/remote_connection.py", line 397, in _request
resp = self._conn.request(method, url, body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/request.py", line 79, in request
**urlopen_kw)
File "/usr/lib/python3/dist-packages/urllib3/request.py", line 142, in request_encode_body
**urlopen_kw)
TypeError: urlopen() got multiple values for keyword argument 'body'
Commit 6714ac6 broke windows compatibility.
If the user gives a folder as third argument the script should check what's the environment and then eventually add a '\' if we are on Windows and a '/' if we are on Unix.
Example output:
C:\Users\gius\Desktop\openload-dl-master>python openload-dl "https://oload.fun/f/5HHWrGijP7U/Naruto_001.mp4" C:\User\gius\Desktop
Extracting download link for C:\User\gius\Desktop/Naruto 001.mp4
Download of C:\User\gius\Desktop/Naruto 001.mp4 in progress...
Traceback (most recent call last):
File "openload-dl", line 74, in <module>
with open(filename,'wb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\User\\gius\\Desktop/Naruto 001.mp4'
Hello I tried your script but I have a problem, your script grab very well link to download,
but download doesnt starts. File is created but 0 bytes.
I tried to download link generated to your script (downloadurl) using wget and works fine. Some idea to fix it ?
Traceback (most recent call last):
File "./openload-dl", line 97, in
browser=webdriver.Firefox(firefox_options=fox_opt)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in init
keep_alive=True)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
Hello I tried your script but I have a problem,
How to batch download openload file?
How to save the openload download link?
Hi.
you say that you script is inspired to youtube-dl,but i found that youtube-dl already supports openload.
Just say what i found.Your script is also great. :)
Hi boss
please list down step-by-step for Windows users installation.
I get this error, but chromedriver unzipped is in the same folder of your script. Have I to move your folder script and chromedriver in some specific path to fix ?
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
Solved: I moved chromedriver to /usr/sbin
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.