Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to interpret path and reference from full url #7

Open
wilvk opened this issue Nov 21, 2018 · 4 comments
Open

Add ability to interpret path and reference from full url #7

wilvk opened this issue Nov 21, 2018 · 4 comments

Comments

@wilvk
Copy link
Owner

wilvk commented Nov 21, 2018

As per issue #6 , it can be confusing when looking at a github web url and translating it into the format -u -d -r

for example:

from:

https://github.com/EsotericSoftware/spine-runtimes/tree/1c717e2d4402e69dd6fe81bf1bb3d8d6d0a58447/examples

to:

githubdl -u "https://github.com/EsotericSoftware/spine-runtimes" -d "examples/raptor" -r 1c717e2d4402e69dd6fe81bf1bb3d8d6d0a58447

this should be detected and taken care of from the url provided.

@Justsoos
Copy link

and how about "blob" uri?
like https://github.com/zhangn1985/ykdl/blob/620b98060dae5d3a8c00fb46751488e4fddea7a3/ykdl/extractors/douyu/live.py

@wilvk
Copy link
Owner Author

wilvk commented Mar 14, 2019

@Justsoos there's probably a few valid formats of url that need to be considered.

@Justsoos
Copy link

http://kinolien.github.io/gitzip/
could do all, and it is open source by JavaScript.
btw, the top post miss a child path "raptor" on first command, and dl results have a wrong depth of double "raptor"

$ tree examples/
examples/
└── raptor
    └── raptor
        ├── export
        │   ├── raptor-pma.atlas
        │   ├── raptor-pma.png
        │   ├── raptor-pro.json
        │   ├── raptor-pro.skel
        │   ├── raptor.atlas
        │   └── raptor.png
        ├── images
        │   ├── back-arm.png
...

@wilvk
Copy link
Owner Author

wilvk commented Mar 14, 2019

that's nice. they serve different purposes. use the -d switch to specify the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants