#html-parser #html-xml #xml-parser #html #xml #regex-parser #soup

soupy

A library for querying tree-based formats, similar to BeautifulSoup

15 releases (9 breaking)

0.10.0 Feb 6, 2025
0.8.3 Jul 17, 2024
0.1.1 Dec 22, 2023
0.1.0 Oct 23, 2023

#2245 in Parser implementations

Download history 31/week @ 2024-10-25 66/week @ 2024-11-01 23/week @ 2024-11-08 49/week @ 2024-11-15 127/week @ 2024-11-22 134/week @ 2024-11-29 232/week @ 2024-12-06 311/week @ 2024-12-13 86/week @ 2024-12-20 65/week @ 2024-12-27 298/week @ 2025-01-03 347/week @ 2025-01-10 229/week @ 2025-01-17 216/week @ 2025-01-24 293/week @ 2025-01-31 463/week @ 2025-02-07

1,220 downloads per month

MIT/Apache

170KB
5.5K SLoC

Soupy

soupy is a library for querying tree-based formats, similar to BeautifulSoup.

Cargo Features

  • html: Support for HTML. Enabled by default.
    • html-lenient: Error-tolerant HTML parser. Slow. Enabled by default.
    • html-strict: Simple, fast HTML parser. Enabled by default.
  • xml: Support for XML. Enabled by default.
  • regex: Support for regex matching in queries. Enabled by default.

License

soupy is dual-licensed under MIT and Apache-2.0.

Dependencies

~2.2–8.5MB
~70K SLoC