tasuren / niconico-dl Goto Github PK
View Code? Open in Web Editor NEWニコニコ動画の動画のダウンロードをするためのPython用モジュール。
Home Page: https://tasuren.github.io/niconico-dl/
License: MIT License
ニコニコ動画の動画のダウンロードをするためのPython用モジュール。
Home Page: https://tasuren.github.io/niconico-dl/
License: MIT License
初めまして。y-chanといいます。
ニコニコ動画の仕様変更に対応したダウンローダーを探していたところ、こちらにたどり着き、コードを読み、参考にさせていただいています。
さて、本題ですが、PythonにはType Hintsという仕組みがあります。
Type Hintsを使えば動的型付けのPythonでありながら、それなりに型安全なコード(もちろん完全とは言えませんが)を書くことが出来、IDEなどでの補完も充実するようになります。
また、可読性も向上します。
以下は例です
def x_plus_y(x: int, y: int) -> int:
return x + y
私の方でType Hintsを実装し、PRしようかと思っていますが、必要がなければIssueはcloseします。
初めまして、Akomeと申します!
個人でニコニコ動画を流せるdiscord音楽botを開発していて、そこでこのライブリを使わせていただいたのですが、heartbeatに関して気になるところがいくつかあったのでissue立てさせていただきました!
niconico_dl_asyncの方なのですが、コードを追ってみてもheartbeatが動いていると思えませんでした。
実際、get_download_link()で取得したurlも一定時間後に403エラーが帰ってくる状況でした。
https://github.com/tasuren/niconico_dl/blob/84b8d1e0bbdb353876485c713aa03b33b10370e1/niconico_dl_async/__init__.py#L142-L173
こちらの部分なのですが、151から162行目以外の処理の意味がわかりませんでした。
自分のこちらのForkで僭越ながらいじらせていただいたのですが、151~162行目の処理だけで問題なく動いているようでした。自分が気づけていない意図がありましたら申し訳ないです。
あと、この機能があると素晴らしく使いやすいな...と単純におもったので...
提案させていただきました...
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.