Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Spike099

macrumors regular
Original poster
Feb 18, 2007
143
0
Canada
So, a little history about why this has stricken my curiosity.

I had a client who wanted to transfer all his geocity files over to a real provider. The client had thousands of files on his account. Now, geocities doesn't allow you to do bulk transfers, nor can you access the site via ftp on a basic account. So... Basically the only way for a typical person to do this was to download each file individually! This wasn't going to happen.

My resolution was to write an app that took in a csv list and downloaded each file for you.

This worked, however I had to copy and paste the list of files and format it properly.

My question is, is there a way to request the contents of a directory via URL Loading System or some other Cocoa or foundation framework?
 
If you're referring to a directory on the server, no, not unless you go through some protocol like FTP or WebDAV.
 
Yes, I was referring to a directory on the server.

So, a crawler would start by parsing whatever index (if no robot.txt) was provided and search the file for links, is this how they find all the pages available on a webserver?
 
Dont reinvent the wheel...

Use http://www.httrack.com

its free and you and slow it down if need be.



So, a little history about why this has stricken my curiosity.

I had a client who wanted to transfer all his geocity files over to a real provider. The client had thousands of files on his account. Now, geocities doesn't allow you to do bulk transfers, nor can you access the site via ftp on a basic account. So... Basically the only way for a typical person to do this was to download each file individually! This wasn't going to happen.

My resolution was to write an app that took in a csv list and downloaded each file for you.

This worked, however I had to copy and paste the list of files and format it properly.

My question is, is there a way to request the contents of a directory via URL Loading System or some other Cocoa or foundation framework?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.