Merge branch 'master' of https://gitlab.com/dessalines/torrents.csv
This commit is contained in:
commit
f5b1282a47
|
@ -2,6 +2,7 @@ extern crate clap;
|
||||||
extern crate csv;
|
extern crate csv;
|
||||||
extern crate reqwest;
|
extern crate reqwest;
|
||||||
extern crate select;
|
extern crate select;
|
||||||
|
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use select::document::Document;
|
use select::document::Document;
|
||||||
use select::predicate::{Attr, Class, Name, Predicate};
|
use select::predicate::{Attr, Class, Name, Predicate};
|
||||||
|
@ -179,6 +180,7 @@ fn skytorrents(save_dir: &Path) {
|
||||||
|
|
||||||
for page in pages.iter() {
|
for page in pages.iter() {
|
||||||
println!("Fetching page {}", page);
|
println!("Fetching page {}", page);
|
||||||
|
|
||||||
let html = match fetch_html(page) {
|
let html = match fetch_html(page) {
|
||||||
Ok(t) => t,
|
Ok(t) => t,
|
||||||
_err => continue,
|
_err => continue,
|
||||||
|
|
Loading…
Reference in New Issue