View Single Post
Old 2005-06-22, 05:26 PM   #21
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
Quote:
Originally Posted by Verbal
Now I'm interested in how Swedguy has implemented this so that it works so well.
It's not that hard actually.

Go to the index page and fetch all links, keep all links that are 1 dir deep (works on 99% of all sites). I'll fine tune that part when I get some time over. It should be dynamic depending on how many dirs deep the original site is.

Now we have a bunch of links that the script thinks are main page links. Fetch all links on the "main" page and keep the ones that are 1 dir deep. Go to the links and see if it has links to images, if it doesn't, discard it, it's not a gallery. If it does, keep it.

Now we have an index, main, gallery and images trail that we can do whatever we want to do with

There are some other filters. But that's the basics of it.
swedguy is offline   Reply With Quote