|
@@ -22,11 +22,12 @@ fn scrape_feats(url: &str) {
|
|
|
if header {
|
|
|
header = false;
|
|
|
} else {
|
|
|
- let name = node.find(Name("td")).next().unwrap().text();
|
|
|
- let prereqs = node.find(Name("td")).next().unwrap().text();
|
|
|
- let benefit = node.find(Name("td")).next().unwrap().text();
|
|
|
+ let mut tds = node.find(Name("td"));
|
|
|
+ let name = tds.next().unwrap().text();
|
|
|
+ let prereqs = tds.next().unwrap().text();
|
|
|
+ let benefit = tds.next().unwrap().text();
|
|
|
|
|
|
- println!("|{}|{}|{}|\n", name, prereqs, benefit);
|
|
|
+ println!("|{}|{}|{}|", name, prereqs, benefit);
|
|
|
}
|
|
|
}
|
|
|
|