1.

How Does Scrapy Compare To Beautifulsoup Or Lxml?

Answer»

BeautifulSoup and lxml are libraries for parsing HTML and XML. Scrapy is an APPLICATION framework for writing web spiders that crawl web sites and extract DATA from them.

Scrapy provides a built-in MECHANISM for extracting data (called selectors) but you can easily use BeautifulSoup (or lxml) instead, if you feel more comfortable working with them. After all, they’re just parsing libraries which can be imported and used from any PYTHON code.

In other words, comparing BeautifulSoup (or lxml) to Scrapy is like comparing JINJA2 to Django.

BeautifulSoup and lxml are libraries for parsing HTML and XML. Scrapy is an application framework for writing web spiders that crawl web sites and extract data from them.

Scrapy provides a built-in mechanism for extracting data (called selectors) but you can easily use BeautifulSoup (or lxml) instead, if you feel more comfortable working with them. After all, they’re just parsing libraries which can be imported and used from any Python code.

In other words, comparing BeautifulSoup (or lxml) to Scrapy is like comparing jinja2 to Django.



Discussion

No Comment Found