Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created May 24, 2018 22:23
Show Gist options
  • Save rippinrobr/b53ebe62d90b797e17baad44f88622c3 to your computer and use it in GitHub Desktop.
Save rippinrobr/b53ebe62d90b797e17baad44f88622c3 to your computer and use it in GitHub Desktop.
Adding links to the table to track the fetching of the pages
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