Results 1 to 5 of 5

Thread: CG Society Gallery Browser

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,146
    Rep Power
    735

    Smile CG Society Gallery Browser

    I like to visit the CG Society website from time to time, as it is community for 2D/3D artists and many tallented people post their work there.

    There is one problem thought - when you open one of the galleries, it is organised in threads. So to see all images added since your last visit, you have to open each thread, wait till it loads, and it sometimes even timeouts...

    To overcome this impractical browsing, I used INet module to download the forum page source code to memory without images (via INET_URLGetString), then I analyze it using string functions (GRAB$) for threads and its images, and create simplified view for me (creating custom HTML file on the fly) - just images and their titles (like in more classical gallery).

    As the discussions around images on CG are sometimes interesting, I made the output in a way, that when you click the image, it takes you to the full version of the thread. Via context menu you can always get back.

    It is not the most complex program ever made , but I think it can demonstrate how to use ThinBASIC for customizing the web browsing experience.

    I attach the sources here, controls are simple, just click one of the buttons (3D / Stills for example), wait a bit for the load, and then you can enjoy the images without hectic thread opening.
    The image count setting in the bottom part of the window allows you to setup how many images do you want to download.

    The source code is organised to 3 files:
    • CGSociety_GalleryBrowser.tBasic - application itself
    • CGSociety_WebsiteHandling.tBasicU - specific routines to manage CG Society website forum
    • Control_NeatButton.tBasicU - specific routines for label-based flat button, which can "hold" string information


    Petr
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Petr Schreiber; 19-11-2011 at 23:14.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #2
    this is surely a great utility, yes the site browsing are difficult, and this utility make it easier to look and to save the art pictures. i add this to your program the youtube files extractor here ... for my every day usage.
    thanks

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,814
    Rep Power
    10
    What a great tool Petr!
    I think many CG Society users will be happy to have such a tool.

    Thanks a lot.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  4. #4
    Nice program Petr, it's interesting to see how information on web pages can be displayed in different ways. A few years ago I saw a similar type of program here written in Lisp which reads from a webpage containing information from Usenet newsgroups & then displays it as a chart.

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,146
    Rep Power
    735
    Nice to see such a useful LISP code, at university we just practised recursion on simple model cases.

    The website data extraction can become very addictive


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Google's new browser
    By matthew in forum Shout Box Area
    Replies: 9
    Last Post: 04-09-2008, 22:11
  2. Mozilla next browser?
    By ErosOlmi in forum Software discussion
    Replies: 0
    Last Post: 06-08-2008, 15:22
  3. MSDN Code Gallery
    By ErosOlmi in forum Development
    Replies: 1
    Last Post: 07-02-2008, 04:03

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •