Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
HELP: parsing unicode web sites
I need help in parsing unicode webpages & downloading jpeg image files via Perl scripts.
I read http://www.cs.utk.edu/cs594ipm/perl/crawltut.html
about using LWP or HTTP or get($url) functions & libraries. But the content returned is always garbled. I have used get($url) on a non-unicode webpage and the content is returned in perfect ascii.
But now I want to parse http://www.tom365.com/movie_2004/html/5507.html
and the page I get back is garbled encoded. I have read about Encode but don't know how to use it.
I need a Perl script to parse that above page and extract the URL for the image in this pattern:
If anyone knows how to do this parsing unicode webpages then I'd be very grateful.
0 · ·