Open tyeeman opened 4 years ago
Welcome. Yup. I plan to add a JS alternative some time in the future. Speed will be sacrificed of course. I'm not sure how frequently ZS change their method, but I'll keep this updated.
I'm only getting one of 6 urls working, the last one here, all links exist.
https://www67.zippyshare.com/v/ZRvsTA0p/file.html
https://www67.zippyshare.com/v/psvXkngU/file.html
https://www67.zippyshare.com/v/9UzuuoX2/file.html
https://www67.zippyshare.com/v/XM1EEQ2D/file.html
https://www67.zippyshare.com/v/606u3EBb/file.html
https://www67.zippyshare.com/v/QqzBqooz/file.html
It would also be nice to output the real links to a file so I could use another downloader. I use aria2c and it maxes out my connection where others don't. As a matter of fact that's all the functionality I need really.
Will look into. I was thinking about that. I'll add a switch to dump them instead of download. Maybe using the -o switch actually. Something like, -o out.txt
Did you confirm only the last link above works?
All are working here. What was the issue?
Could you do a search in your browser on the HTML for this? Type in getElementById
.
document.getElementById('dlbutton').href = "/d/ZRvsTA0p/" + (541881 % 51245 + 541881 % 913) + "/Rian.Ruined.Star.Wars.part1.rar";
Forgive me, but your app doesn't use my browser so I'm a little confused. You want me to type in the address bar ?
Go to the first URL in your browser, then do a search with the F12 key.
OK here it is -
document.getElementById('dlbutton').href = "/d/ZRvsTA0p/" + (764230 % 51245 + 764230 % 913) + "/Rian.Ruined.Star.Wars.part1.rar";
if (document.getElementById('fimage')) {
document.getElementById('fimage').href = "/i/ZRvsTA0p/" + (764230 % 51245 + 764230 % 913) + "/Rian.Ruined.Star.Wars.part1.rar";
}
It's still a full regex match. Not sure what's going on here. EDIT: could you grab the script again? Think you might have an outdated copy.
I downloaded the latest and it matches my current version exactly.
Are you passing each URL with a single space in between?
I'm using a txt file with one url per line like in the 3rd post above. I guess that's wrong then. I don't see a txt file example in the readme?
One per line is fine. There is.
Download from text file to "G:\ZS-DL downloads" with HTTPS proxy: ZS-DL.py -u G:\links.txt -o "G:\ZS-DL downloads" -p 0.0.0.0:8080
After line 90 (r = s.get(url)), could you put print(r.text)
?
r = s.get(url)
print(r.text)
This will print the HTML. Paste it into a text editor, and find the text again. https://github.com/Sorrow446/ZS-DL/issues/1#issuecomment-636367313
I get this error -
IndentationError: unindent does not match any outer indentation level
Update - I see I'm using spaces as tabs. I'll try to change it.
OK, tabs restored and it runs. I was going to say everything scrolls off my cmd window, which most does and I couldn't find getElementById. Just for fun I deleted all links except the first one and it did start to download (part1), so it looks like only the last file in my links.txt file works. I left 2 links in the links.txt file and only the second one started to download.
This is the only getElementbyID I could see in my cmd window -
<script src="/ads.js" type="text/javascript"></script>
<script src='https://www.google.com/recaptcha/api.js?render=explicit'></script>
<script type="text/javascript">
$(document).ready(function() {
if(document.getElementById('zippyfake')){
$.cookie('zippyadb', '0', {expires: 99999, domain: 'zippyshare.com', path: '/'});
} else {
$.cookie('zippyadb', '1', {expires: 99999, domain: 'zippyshare.com', path: '/'});
}
});
</script>
All the previous html has scrolled off my screen.
Ok, we're getting closer, it seems to be related to the end of line character. I just added a line feed character after the last link in links.txt and nothing would download. I'm on Windows I guess that's why this is happening. I'm searching stackoverflow for hints for universal Linux/Windows end of line regex??
Working great now, thanks!
@Sorrow446 Thanks for the script! Do you plan on adding support for dlc containers?
@PaulinoRBJ https://github.com/Sorrow446/ZS-DL/commit/a08e57fff4faf5bc36e51d2f9ab9964e85dd3119
Please try it out. You can use it by providing the path to your DLC file. It can be used just like regular URLs with the -u
arg. You can also mix them with regular URLs.
@Sorrow446 Thanks! It works great. However there seems to be an issue if multiple DLCs are specified- zs-dl.py
seems to handle some of them as DLC containers while the others are treated as URL's. Here's what it looks like:
> zs-dl.py -u *.dlc
_____ _____ ____ __
|__ | __|___| \| |
| __|__ |___| | | |__
|_____|_____| |____/|_____|
Processing DLC container: container1.dlc
Processing DLC container: container2.dlc
URL 1 of 127:
URL failed.
ValueError: Invalid URL: container3.dlc
URL 2 of 127:
URL failed.
ValueError: Invalid URL: container4.dlc
URL 3 of 127:
container1.part01.rar
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 500M/500M [01:21<00:00, 6.42MB/s]
.
.
@PaulinoRBJ Do you have the latest ver? Forgot a period. https://github.com/Sorrow446/ZS-DL/commit/f41dc08455b3957d09b083910d1092eba6575c2a
@Sorrow446 Yes, I am using the latest post f41dc08
version.
@PaulinoRBJ Damn. Could you send those links so I could reproduce?
@Sorrow446 sure. I've attached 3 test DLCs I made and then tested with the same results I was getting before. test-DLCs.zip
➜ ~ zs-dl.py -u *.dlc
_____ _____ ____ __
|__ | __|___| \| |
| __|__ |___| | | |__
|_____|_____| |____/|_____|
Processing DLC container: testf1.dlc
Processing DLC container: testf3.dlc
URL 1 of 3:
URL failed.
ValueError: Invalid URL: testf2.dlc
URL 2 of 3:
testf1
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.00/3.00 [00:00<00:00, 5.07kB/s]
URL 3 of 3:
testf3
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.00/3.00 [00:00<00:00, 4.01kB/s]
@PaulinoRBJ Fixed, sorry for the trouble.
@Sorrow446 thanks again for this fix, DLCs are now working perfectly. Wasn't any trouble and I love that I was able to help in some way. 😄
@Sorrow446 the pattern is change again, please fix Thanks
Fixed. Pushed to binary and source.
zippy updates the pattern again :(
zippy updates the pattern again :(
Yes change the pattern again @Sorrow446 can you show me how you check new pattern if zippyshare change the pattern?
@Sorrow446 the pattern is change again, please fix Thanks
Fixed. Binary & source.
zippy updates the pattern again :(
Yes change the pattern again @Sorrow446 can you show me how you check new pattern if zippyshare change the pattern?
Right click -> view page source. Do a search for "document.getElementById('dlbutton')".
Yes, much appreciated, but will this need updating over and over when Zippy changes, like the repo that motivated you to do this?