Dark Bit Factory & Gravity

GENERAL => General chat => Topic started by: ttemper on March 05, 2012

Title: Bitmap Fonts and Custom Flickr Script
Post by: ttemper on March 05, 2012
Hey guys... So I was hunting down code and fonts and such for use in my demos/intros and came across Flickr that had a whole heap I found (uploaded by roy/SAC).

The dilemma... you can't mass/batch download files. In having a brief look at his album sets.... I wanted all the bitmap fonts downloaded locally. What I didn't want to do was have to click every damn file 4 times to get it.... so I wrote myself a batch download script in bash/linux.

This is basically how it runs...


./flickr.sh 72157611369289453
created directory ./72157611369289453
downloading new source links, please wait...
72157611369289453 flickr source saved
finding number of pages...
grabbing image links on page http://www.flickr.com/photos/cumbrowski/sets/72157611369289453/?page=1
grabbing image links on page http://www.flickr.com/photos/cumbrowski/sets/72157611369289453/?page=2
grabbing image links on page http://www.flickr.com/photos/cumbrowski/sets/72157611369289453/?page=3
grabbing image links on page http://www.flickr.com/photos/cumbrowski/sets/72157611369289453/?page=4
grabbing image links on page http://www.flickr.com/photos/cumbrowski/sets/72157611369289453/?page=5
grabbing image links on page http://www.flickr.com/photos/cumbrowski/sets/72157611369289453/?page=6
1 - downloaded file ./72157611369289453/3122436912_ed8a7d2e17_o_d.png
2 - downloaded file ./72157611369289453/3122436744_1a7142ef7d_o_d.png
3 - downloaded file ./72157611369289453/3122436756_d4c855c722_o_d.png
4 - downloaded file ./72157611369289453/3122436780_c5bbf6bf4a_o_d.png
5 - downloaded file ./72157611369289453/3122436836_dee089a3a2_o_d.png


My script has page checking, error checking etc, and if the file exists... it skips it.

It's hard linked to download only the sets that I want at the moment, but could be adapted for any 'flickr' set/url.

So what did all that mean? It meant that by scripting it, it saved me hours upon hours upon days of manually clicking each link. Now I just run the command for each 'set' of photos I want to grab, and it does the whole lot for me, saves directly to shell/hdd.

Not sure if anyone here is interested in the script for their own use, but if so, hit me up in private message and I'll be happy to share.

As for the ~1200 bitmap fonts that I have now acquired... again if anyone wants them, hit me up in private message, as it's too big to post here.
Title: Re: Bitmap Fonts and Custom Flickr Script
Post by: LittleWhite on March 09, 2012
Hello,

Seems nice :)
Why to not post it ? (Personnaly, I am not even using Flickr :D)
Title: Re: Bitmap Fonts and Custom Flickr Script
Post by: ttemper on March 10, 2012
@LittleWhite... Just personal choice that I didn't post my script directly in the forum. Like I said, if you are in need of mass downloading script from flickr (whole album/sets), then by all means, I'll be happy to share.

It beats clicking on every damn link 4 times to get 1 image downloaded, I'd go insane! To grab the ~1200 images via the script, it was very quick. Script is verbose, so you can see what's going on.
Title: Re: Bitmap Fonts and Custom Flickr Script
Post by: jace_stknights on March 11, 2012
Well done, got also a sort of script like that in php here : mine was made to rip photos from a professional site for events (in this case it was the marriage of a friend of mine) but there was a little protection to make you paid the picture about 0.50€!  After a closer look, I found that the pics were named like "pic0001.jpg" and the recuced "pic0001_reduced.jpg". ahaha so I got all of them (about 500)... sorry for the photographer, but he has been paid to shoot first, and he wants also to be paid by each guest like it was a new customer!  :boxer:

But return to the topic  ;D : It would be nice if you were able to put the archive somewhere! I'm very interested by these fonts... Or perhaps making runs the script somewhere?
Title: Re: Bitmap Fonts and Custom Flickr Script
Post by: ttemper on March 11, 2012
@Jace_stknights...

I totally agree with my little 'catch' being put towards a resource/production archive on here, that'd be great. From what I can see on DBF at the moment is that there is no real 'goodies basket' when it comes to fonts, logos, code snippets, etc. (Although there are many straight code sources on here to grab and learn from).

IMO having those resources for 'dbf members only' would be great. I do have those ~1200 bitmap fonts to put on here, plus a handful of my own 100% custom bitmap fonts and a couple of DBF logos (which I will be using in upcoming demo(s) of mine, hence not released just yet).

When it comes to coding, personally I like to place all my routines inside sub routines/functions and then from the main loop, call those. A nice little engine would be great. 2d/3d/whatever.

And of course the font pack that I have atm is roughly 38mb. I guess I can either I split it up into separate rar/zip or send them to Shockwave to put on here. Ive tried searching for more bitmaps, but haven't found any yet.

Anyone have any more links/urls/whatever for bitmap font resources?
Title: Re: Bitmap Fonts and Custom Flickr Script
Post by: Raizor on March 11, 2012
Quote from: jace_stknights on March 11, 2012
Well done, got also a sort of script like that in php here : mine was made to rip photos from a professional site for events (in this case it was the marriage of a friend of mine) but there was a little protection to make you paid the picture about 0.50€!  After a closer look, I found that the pics were named like "pic0001.jpg" and the recuced "pic0001_reduced.jpg". ahaha so I got all of them (about 500)... sorry for the photographer, but he has been paid to shoot first, and he wants also to be paid by each guest like it was a new customer!  :boxer:

:D