utkarshkukreti / select.rs

A Rust library to extract useful data from HTML documents, suitable for web scraping.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jihuun opened this issue · comments

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();

It's a regular iterator Find.