Increasing page fetch limit from skytorrents.
This commit is contained in:
parent
eb18286d20
commit
b34953b15d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue