Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any language which is just "perfect" for web scraping? [closed]

I have used 3 languages for Web Scraping - Ruby, PHP and Python and honestly none of them seems to perfect for the task.

Ruby has an excellent mechanize and XML parsing library but the spreadsheet support is very poor.

PHP has excellent spreadsheet and HTML parsing library but it does not have an equivalent of WWW:Mechanize.

Python has a very poor Mechanize library. I had many problems with it and still unable to solve them. Its spreadsheet library also is more or less decent since it unable to create XLSX files.

Is there anything which is just perfect for webscraping.

PS: I am working on windows platform.

like image 754
Shubham Avatar asked Aug 12 '10 13:08

Shubham


2 Answers

Check Python + Scrappy, it is pretty good:

http://scrapy.org/

like image 116
juanjux Avatar answered Oct 05 '22 23:10

juanjux


Why not just use the XML Spreadsheet format? It's super simple to create, and it would probably be trivial with any type of class-based system.

Also, for Python have you tried BeautifulSoup for parsing? Urllib+BeautifulSoup makes a pretty powerful combo.

like image 24
Wayne Werner Avatar answered Oct 05 '22 23:10

Wayne Werner