Giter Site home page Giter Site logo

move_video_to_bilibili's Issues

登录失败

video_file/file_20211121
mkdir: 无法创建目录 “video_file/file_20211121”: 文件已存在
date: 不适用的选项 -- v
请尝试执行 "date --help" 来获取更多信息。
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 11, in
load_entry_point('youtube-dl==2020.3.24', 'console_scripts', 'youtube-dl')()
File "/usr/lib/python3/dist-packages/youtube_dl/init.py", line 478, in main
_real_main(argv)
File "/usr/lib/python3/dist-packages/youtube_dl/init.py", line 221, in _real_main
date = DateRange(opts.dateafter, opts.datebefore)
File "/usr/lib/python3/dist-packages/youtube_dl/utils.py", line 2976, in init
self.start = date_from_str(start)
File "/usr/lib/python3/dist-packages/youtube_dl/utils.py", line 2957, in date_from_str
return datetime.datetime.strptime(date_str, '%Y%m%d').date()
File "/usr/lib/python3.8/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/usr/lib/python3.8/_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data 'https://www.youtube.com/c/cafemusicbgmchannel/playlists' does not match format '%Y%m%d'
login fail, error code = -449
date---------20211121

运行auto_mv_video时报错

错误信息如下:

xxxxxxxx@DESKTOP-5EML1PJ:/mnt/d/Move_Video_to_Bilibili$ sh ./auto_mv_video.sh
video_file/file_20210729
date: invalid option -- 'v'
Try 'date --help' for more information.
date: invalid option -- 'v'
Try 'date --help' for more information.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/youtube_dl/init.py", line 475, in main
_real_main(argv)
File "/usr/local/lib/python3.8/dist-packages/youtube_dl/init.py", line 222, in _real_main
date = DateRange(opts.dateafter, opts.datebefore)
File "/usr/local/lib/python3.8/dist-packages/youtube_dl/utils.py", line 3103, in init
self.start = date_from_str(start)
File "/usr/local/lib/python3.8/dist-packages/youtube_dl/utils.py", line 3084, in date_from_str
return datetime.datetime.strptime(date_str, '%Y%m%d').date()
File "/usr/lib/python3.8/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/usr/lib/python3.8/_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data 'https://www.youtube.com/channel/UCkngxfPbmGyGl_RIq4FA3MQ/videos' does not match format '%Y%m%d'
./auto_mv_video.sh: 4: python: not found

关于安装失败的统一回复

因为这个项目已经没有维护了,现在只是分享给大家,可以在上面魔改。安装和使用过程中的主要问题就是需要更新相关爬虫项目的版本,例如youtube-dl。祝好

运行

错误代码为:
$ bash auto_mv_video.sh
video_file/file_20210608
mkdir: cannot create directory ‘video_file/file_20210608’: File exists
date: unknown option -- v
Try 'date --help' for more information.
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\programdata\anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\youtube-dl.exe_main
.py", line 7, in
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl_init
.py", line 474, in main
real_main(argv)
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl_init
.py", line 222, in _real_main
date = DateRange(opts.dateafter, opts.datebefore)
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl\utils.py", line 2976, in init
self.start = date_from_str(start)
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl\utils.py", line 2957, in date_from_str
return datetime.datetime.strptime(date_str, '%Y%m%d').date()
File "c:\programdata\anaconda3\lib_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "c:\programdata\anaconda3\lib_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data 'https://www.youtube.com/c/SergioValentino/playlists' does not match format '%Y%m%d'
date: unknown option -- v
Try 'date --help' for more information.
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\programdata\anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\youtube-dl.exe_main
.py", line 7, in
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl_init
.py", line 474, in main
real_main(argv)
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl_init
.py", line 222, in _real_main
date = DateRange(opts.dateafter, opts.datebefore)
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl\utils.py", line 2976, in init
self.start = date_from_str(start)
File "c:\programdata\anaconda3\lib\site-packages\youtube_dl\utils.py", line 2957, in date_from_str
return datetime.datetime.strptime(date_str, '%Y%m%d').date()
File "c:\programdata\anaconda3\lib_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "c:\programdata\anaconda3\lib_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data 'https://www.youtube.com/c/SergioValentino/videos' does not match format '%Y%m%d'
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 485, in wrap_socket
cnx.do_handshake()
File "C:\ProgramData\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1934, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "C:\ProgramData\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1663, in _raise_ssl_error
raise SysCallError(errno, errorcode.get(errno))
OpenSSL.SSL.SysCallError: (10054, 'WSAECONNRESET')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 662, in urlopen
self._prepare_proxy(conn)
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 948, in prepare_proxy
conn.connect()
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connection.py", line 352, in connect
self.sock = ssl_wrap_socket(
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\util\ssl
.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 491, in wrap_socket
raise ssl.SSLError("bad handshake: %r" % e)
ssl.SSLError: ("bad handshake: SysCallError(10054, 'WSAECONNRESET')",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='passport.bilibili.com', port=443): Max retries exceeded with url: /api/oauth2/getKey (Caused by SSLError(SSLError("bad handshake: SysCallError(

请问要如何解决,麻烦告知一下,谢谢

mkv格式也可用于投稿

File "user_up.py", line 122 只限定了mp4格式上传, 我试了下mkv也是可以的 这个判断应该可以放宽一些

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.