Increasing page fetch limit from skytorrents.

This commit is contained in:
Dessalines 2018-11-15 11:36:12 -07:00
parent eb18286d20
commit b34953b15d
1 changed files with 4 additions and 2 deletions

View File

@ -21,18 +21,20 @@ fn main() {
fn skytorrents() {
let page_limit = 100;
let base_url = "https://www.skytorrents.lol";
let mut pages: Vec<String> = 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);
}