开发者

best way to emulate a python ie compatible browser

开发者 https://www.devze.com 2023-04-13 01:46 出处:网络
What would be the best way to emulate a IE browser with python for scraping? I\'ve found this script http://www.mayukhbose.com/python/IEC/index.php and was wo开发者_运维百科ndering if there was anythi

What would be the best way to emulate a IE browser with python for scraping? I've found this script http://www.mayukhbose.com/python/IEC/index.php and was wo开发者_运维百科ndering if there was anything more updated out there! (that's able to fill forms)

Thanks!


If you want to scrape, you can use a scraper module like mechanize http://wwwsearch.sourceforge.net/mechanize/


Python Mechanize does exactly that:

http://wwwsearch.sourceforge.net/mechanize/

It acts as a browser (i.e. you can go foward and backward, search and fill out a form on a retrieved page, post etc.)

0

精彩评论

暂无评论...
验证码 换一张
取 消