In any languages, Can I capture a webpage and save it image file? (no install, no activeX)

后端 未结 3 1717
长情又很酷
长情又很酷 2021-01-17 07:53

I heard it is possible to capture webpages by using PHP(maybe above 6.0) on windows server.

I got some sample code and tested. but there are no code to perform righ

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 08:14

    Though you have asked for a PHP solution, I would like to share yet another solution with Perl. WWW::Mechanize along with LWP::UserAgent and HTML::Parser can help in screen scraping.

    Some documents for reference:

    • Web scraping with WWW::Mechanize
    • Screen-scraping with WWW::Mechanize

提交回复
热议问题