| View previous topic :: View next topic |
| Author |
Message |
Chewy How do I cheat?
Reputation: 0
Joined: 17 Jul 2011 Posts: 3
|
Posted: Sun Jul 17, 2011 2:26 pm Post subject: Question about wget |
|
|
Not entirely sure if this is in the right section. Sorry if it is!
I'm trying to download all the high-res wallpapers off of simpledesktops[dot]com through the use of wget, but I'm running into a bit of trouble. I can only retrieve the thumbnail versions of the wallpapers and not the actual 2560x1600 versions.
Here is what I input:
| Code: | | wget -r -l2 -np -nd -A.png -i wallpaper.txt |
Using -l2 allowed me to finally get a couple (literally 2) 2560x1600 files. This was after multiple attempts with -l1 which yielded no 2560x1600's. Still even with -l2, I had a load of low-res thumbnails and none of the source files.
The high-res pics are stored on static.simpledesktops[dot]com, but I can't access that (403 Forbidden).
Can anyone provide me with assistance on how to obtain the high-res pictures? Fyi, the high-res pictures' filenames are in the format of "Blah Blah Blah.png" whereas the thumbnails, etc are in the format of "Blah Blah Blah q100.png". I was wondering if there was anyway to exclude a certain term within a filename. Any help would be greatly appreciated!
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Jul 17, 2011 2:30 pm Post subject: |
|
|
Just trim the extra bit off the end of the urls. Almost every programming language has some sort of string library that will allow you to do it with ease.
_________________
- Retired. |
|
| Back to top |
|
 |
Chewy How do I cheat?
Reputation: 0
Joined: 17 Jul 2011 Posts: 3
|
Posted: Sun Jul 17, 2011 2:46 pm Post subject: |
|
|
Thanks for the reply, but I don't quite understand what you're saying. What I'm downloading are both the "...Blah q100.png" and "...Blah.png".
I only want to download the "...Blah.png" files.
I think the "-A.png" command is too non-specific because it downloads ALL the .png files instead of just the "...Blah.png". I just want to know if theres a way to only get the "...Blah.png" files without downloading the low-res thumbnails along with it.
EDIT: Nevermind! Got it to work. Thanks anyway!
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Jul 17, 2011 3:00 pm Post subject: |
|
|
| Chewy wrote: | Thanks for the reply, but I don't quite understand what you're saying. What I'm downloading are both the "...Blah q100.png" and "...Blah.png".
I only want to download the "...Blah.png" files.
I think the "-A.png" command is too non-specific because it downloads ALL the .png files instead of just the "...Blah.png". I just want to know if theres a way to only get the "...Blah.png" files without downloading the low-res thumbnails along with it. |
You need to make a script or a program that will obtain the file names and then trim the extra bits off before calling wget to get the actual file.
_________________
- Retired. |
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Mon Jul 18, 2011 9:08 am Post subject: |
|
|
Use -R or --reject you can specify a csv separated list of files or regex to exclude it will do pattern matches.
| Code: | | wget -r -l2 --reject [q100] -np -nd -A.png -i wallpaper.txt | would download everything without q100 in the name.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
Chewy How do I cheat?
Reputation: 0
Joined: 17 Jul 2011 Posts: 3
|
Posted: Mon Jul 18, 2011 4:35 pm Post subject: |
|
|
Thanks a bunch! I actually didn't fix it that way, but that --reject command will come in very handy
|
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Mon Jul 18, 2011 9:01 pm Post subject: |
|
|
Don't forget #$ man wget
is your friend.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
|