Skip to content

parse5vsfeedparser

MIT 34 7 3,886
419.4 million (month) Jul 03 2013 8.0.0(2026-02-21 19:30:52 ago)
2,351 9 105 NOASSERTION
Jun 15 2007 14.7 million (month) 6.0.12(2025-09-10 13:33:58 ago)

parse5 is a Node.js library for parsing and manipulating HTML and XML documents. It is designed to be fast and flexible, and it is commonly used in web scraping and web development projects.

parse5 is used by popular libraries such as Angular, Lit, Cheerio and many more. Unlike Cheerio parse5 is a low level html parsing library that might be useful directly in web scraping without higher level abstraction.

feedparser is a Python module for downloading and parsing syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91, Userland RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0, Atom 0.3, Atom 1.0, and CDF feeds. It also parses several popular extension modules, including Dublin Core and Apple’s iTunes extensions.

To use Universal Feed Parser, you will need Python 3.6 or later. Universal Feed Parser is not meant to run standalone; it is a module for you to use as part of a larger Python program.

feedparser can be used to scrape data feeds as it can download them and parse the XML structured data.

Example Use


```javascript const parse5 = require("parse5"); // parse string const document = parse5.parse('Hello World!'); console.log(document); // html tree can be traversed as javascript object: const body = document.childNodes[1]; console.log(body.childNodes[0].value); // "Hello World!" // and modified const newElement = parse5.parseFragment('

New Element

'); body.appendChild(newElement.childNodes[0]); console.log(parse5.serialize(document)); ```
```python import feedparser # the feed can be loaded from a remote URL data = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml') # local path data = feedparser.parse('/home/user/data.xml') # or raw string data = feedparser.parse('...') # the result dataset is a nested python dictionary containing feed data: data['feed']['title'] ```

Alternatives / Similar


Was this page helpful?