1
2
3
4
5
6
7
8
9
10
11
12
13
pub use reqwest::{Client, Error};

#[tokio::main]
pub async fn fetch_page_html(url: &str, client: &Client) -> Result<String, Error> {
	let body = client
		.get(url)
		.send()
		.await?
        .text()
        .await?;

    Ok(body)
}