Last active
May 24, 2018 22:20
-
-
Save rippinrobr/3e44d4ddb32620b45567eb5433f2bfcd to your computer and use it in GitHub Desktop.
Getting all of the links from the 'seed' page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if _matches.is_present("get-links") { | |
WikiRepo::get_page_links(&c, title.to_string(), |link| { | |
match db::add_link_process(&conn, &link) { | |
Err(e) => println!("SAVE ERROR: {} {}", e ,link.title), | |
Ok(_) => println!("Added: {}", link.title) | |
}; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment