Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Question about wget

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Chewy
How do I cheat?
Reputation: 0

Joined: 17 Jul 2011
Posts: 3

PostPosted: Sun Jul 17, 2011 2:26 pm    Post subject: Question about wget Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Jul 17, 2011 2:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Chewy
How do I cheat?
Reputation: 0

Joined: 17 Jul 2011
Posts: 3

PostPosted: Sun Jul 17, 2011 2:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Jul 17, 2011 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Mon Jul 18, 2011 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Chewy
How do I cheat?
Reputation: 0

Joined: 17 Jul 2011
Posts: 3

PostPosted: Mon Jul 18, 2011 4:35 pm    Post subject: Reply with quote

Thanks a bunch! I actually didn't fix it that way, but that --reject command will come in very handy Smile
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Mon Jul 18, 2011 9:01 pm    Post subject: Reply with quote

Don't forget #$ man wget

is your friend.

_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites