diff --git a/new_torrents_fetcher/src/main.rs b/new_torrents_fetcher/src/main.rs index e4f6535..e0bc91b 100644 --- a/new_torrents_fetcher/src/main.rs +++ b/new_torrents_fetcher/src/main.rs @@ -20,19 +20,21 @@ fn main() { } fn skytorrents() { + + let page_limit = 100; let base_url = "https://www.skytorrents.lol"; let mut pages: Vec = Vec::new(); - for i in 1..20 { + for i in 1..page_limit { let page = format!("{}/top100?page={}", base_url, i); pages.push(page); } let types = ["video", "audio", "games", "software", "doc", "ebook", "yify", "epub"]; for c_type in types.iter() { - for i in 1..20 { + for i in 1..page_limit { let page = format!("{}/top100?type={}&page={}", base_url, c_type, i); pages.push(page); }