Fetching an Image from HTTP
Comment on
Fetching an Image from HTTP
Several people I've noticed have mentioned LWP::Simple for getting the image which is perfect. When you get the image a great way to tell what its type is Image::Size. It will give you the type and diminsions of the Image. Its really easy to use and it supports a ton of image types. Hope that helps As far as grabbing pictures, I have found that LWP::Simple will get them as it apparently ( and someone please correct me if I'm wrong here ) grabs the entire page, code and graphics.
If you're doing this on a windows machine, those pictures you want may already be in your temporary directories and you might consider trying to get them out of there as another option. I don't know if *nix does the same thing or not but it may be another option to look at.
Btw, how are you deciding which ones to get?
You might also check out the latest issue of 2600 magazine. There was an article on grabbing pictures from websites that have the right click disabled - written in Perl.
Hope that helps!
Some people fall from grace. I prefer a running start... Abigail ...oh, don't do that Abigail, (delete I mean) because the presence of information (even if it's bad news) still contributes to the whole body of knowledge.
The anti-motivational poster says, "It could be that the purpose of your life is merely to serve as a warning to others."
I'm not actually suggesting that in this case, but it is instructive to see nodes that were unpopular. This serves as a marker at one end of the continuum just as a highly popular nodes mark the other end. And it might be that over time, others who drop by will like what you wrote and upvote it.
My best guess is that we shouldn't worry too much about how our nodes get voted, we should just move on and write the next thing. It all averages itself out in the end. (I believe that, but people sometimes call me an optimist.)
I should point out though, that there is the possibility that if you delete content from an unpopular node, it reduces the possibility that the node will continue to collect down votes. So factor that in to your thoughts as well.
No matter what though, keep posting. As someone pointed out recently, "It's all good, except when it sucks."
---v
I've always thought that the way people vote was uncomprehensible,
but I hadn't expected this weirdness. I guess we either have
a lot of zombie or bot voters (who don't read the post), or
people just like to see {Deleted}.
Abigail (I'm just pleasing the crowds! ;-))
Replies are listed 'Best First'.
Re: Fetching an Image from HTTP
by Molt (Chaplain) on Jun 07, 2002 at 14:29 UTC
[reply]
[reply]
[d/l]
[select]
[reply]
[d/l]
[select]
[reply]
[d/l]
Re: Fetching an Image from HTTP
by Dog and Pony (Priest) on Jun 07, 2002 at 14:32 UTC
[reply]
[d/l]
Re: Fetching an Image from HTTP
by silent11 (Vicar) on Jun 07, 2002 at 14:41 UTC
[reply]
[d/l]
Re: Fetching an Image from HTTP
by cfreak (Chaplain) on Jun 07, 2002 at 19:23 UTC
Chris
Re: Fetching an Image from HTTP
by Popcorn Dave (Abbot) on Jun 07, 2002 at 18:37 UTC
LWP::Simple is definitely an easy way to go. I am using that in a project to grab news off foreign web sites that don't have RSS set up.
[reply]
[d/l]
Re: Fetching an Image from HTTP
by Abigail-II (Bishop) on Jun 07, 2002 at 14:39 UTC
{Deleted because people don't seem to like it}
<metacomment>
Ah, but oddly enough my note now not only lost its negative
number of votes, but it also now has a twice as high positive
score than it had negatively.


