Is there any Python library that allows me to parse an HTML document similar to what jQuery does?
Posted
by Sachin Tendulkar
on Stack Overflow
See other posts from Stack Overflow
or by Sachin Tendulkar
Published on 2010-06-16T09:09:49Z
Indexed on
2010/06/16
9:12 UTC
Read the original article
Hit count: 217
python
Is there any Python library that allows me to parse an HTML document similar to what jQuery does?
i.e. I'd like to be able to use CSS selector syntax to grab an arbitrary set of nodes from the document, read their content/attributes, etc.
The only Python HTML parsing lib I've used before was BeautifulSoup, and even though it's fine I keep thinking it would be faster to do my parsing if I had jQuery syntax available. :D
Write an iterative program that finds the largest number of McNuggets that cannot be bought in exact quantity. Your program should print the answer in the following format (where the correct number is provided in place of n):
"Largest number of McNuggets that cannot be bought in exact quantity: n"
© Stack Overflow or respective owner