Created
May 24, 2018 22:23
-
-
Save rippinrobr/b53ebe62d90b797e17baad44f88622c3 to your computer and use it in GitHub Desktop.
Adding links to the table to track the fetching of the pages
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
let page = client.page_from_title(title.to_string()); | |
let links_iter = page.get_links().expect("unable to get the links"); | |
for (i, l) in links_iter.enumerate() { | |
let lp = LinkProcessed { | |
title: l.title, | |
processed: 0, | |
}; | |
save_action(lp); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment