Author Topic: Bitmap Fonts and Custom Flickr Script  (Read 4972 times)

0 Members and 1 Guest are viewing this topic.

Offline ttemper

  • Amiga 1200
  • ****
  • Posts: 269
  • Karma: 7
    • View Profile
Bitmap Fonts and Custom Flickr Script
« 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...

Code: [Select]
./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.

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Bitmap Fonts and Custom Flickr Script
« Reply #1 on: March 09, 2012 »
Hello,

Seems nice :)
Why to not post it ? (Personnaly, I am not even using Flickr :D)
The demoscene will never die, never!

Offline ttemper

  • Amiga 1200
  • ****
  • Posts: 269
  • Karma: 7
    • View Profile
Re: Bitmap Fonts and Custom Flickr Script
« Reply #2 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.

Offline jace_stknights

  • Amiga 1200
  • ****
  • Posts: 399
  • Karma: 32
  • PEEK & POKE are not MOVEM!
    • View Profile
    • ST Knights WebSite
Re: Bitmap Fonts and Custom Flickr Script
« Reply #3 on: March 11, 2012 »
Challenge Trophies Won:

Offline ttemper

  • Amiga 1200
  • ****
  • Posts: 269
  • Karma: 7
    • View Profile
Re: Bitmap Fonts and Custom Flickr Script
« Reply #4 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?

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
raizor

Challenge Trophies Won: