diff --git a/src/ivago/controller/mod.rs b/src/ivago/controller/mod.rs index 8e3cb62..ef745d0 100644 --- a/src/ivago/controller/mod.rs +++ b/src/ivago/controller/mod.rs @@ -2,41 +2,3 @@ mod pickup_times; mod search; pub use pickup_times::{get_pickup_times, BasicDate, PickupTime}; pub use search::{search_streets, Street}; - -///// Return the known pickup times for the given street and/or city -///// -///// # Arguments -///// -///// * `street` - name of the street -///// * `city` - city the street is in -//pub fn get_pickup_times(street: Street, number: u32) -> Result, Box> { -// // The client needs to store cookies for the requests to work -// let client = reqwest::Client::builder().cookie_store(true).build()?; - -// // Create post data -// let form = [ -// ("garbage_type", ""), -// ("ivago_street", String::from(street).as_str()), -// ("number", format!("{}", number).as_str()), -// ("form_id", "garbage_address_form"), -// ]; - -// // This request just serves to populate the cookies -// client.post(BASE_URL) -// .form(&form) -// .send()?; - -// let params = [ -// ("_format", "json"), -// ("type", ""), - -// ] - -//r2 = s.get("https://www.ivago.be/nl/particulier/garbage/pick-up/pickups?", -// params={ -// "_format": "json", -// "type": "", -// "start": "1622332800", -// "end": "163861328100" -// } -//}