itchyspacesuit
itchyspacesuit

Reputation: 135

Looking for a way to download parts of webpages

I'm wondering if anyone has come across a way of downloading only parts of .html file rather than the whole file.

I'm aware that wget allows access but it appears that it cannot be customized to download only the first 50 bits or the last 50 bits of the file.

Any suggestions would really be appreciated. If it's not possible, I think I'm going to try to make it, so let me know if you have any suggestions for that as well.

Thanks, Alex

Upvotes: 1

Views: 70

Answers (1)

Saskia
Saskia

Reputation: 524

wget does a HTTP request and this simply means that a server will answer by serving the requested file. You can write your own socket and cut off after the first 50 bytes but you cannot skip the beginning of it, the http protocol simply doesn't do that; you request a file and you get it, that's how it's written. However, after receiving, you are free to save just parts of it.

Upvotes: 1

Related Questions