Web scraper for C++ similar to Perl's WWW::Mechanize?
I would like to know if there is a web-scraping library/API for C++ similar to Perl's WWW::Mechanize? I'm not only looking for HTML parsing its开发者_高级运维elf, but also support for stateful HTTP browsing, submission of Web forms, and maintaining and using cookies, for example to make a Web bot.
For web automation the bottleneck is I/O rather than CPU, which means it doesn't make sense to use a language like C++. Most of these kind of libraries are developed with higher level languages like Perl, Python, etc.
You can use Perl in a C++ program so just use the original Perl library.
精彩评论