utkarshkukreti / select.rs

A Rust library to extract useful data from HTML documents, suitable for web scraping.
MIT License
971 stars 69 forks source link

How to use `next()` from find() #67

Open jihuun opened 3 years ago

jihuun commented 3 years ago

Hi,

What is next() doing? in the below code? And is there documentation or something about how to use the next()? Thanks!

    for node in document.find(Class("question-summary")).take(5) {
        let question = node.find(Class("question-hyperlink")).next().unwrap();
ghost commented 3 years ago

It's a regular iterator Find.