bypass ratelimit
This commit is contained in:
parent
63f5b6dc34
commit
1257ccb1af
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ pub async fn info() -> HashMap<usize, Vec<(DateTime<Utc>, i64)>> {
|
||||||
/// Get info webpage
|
/// Get info webpage
|
||||||
async fn get_webpage() -> Result<Html, Box<dyn std::error::Error>> {
|
async fn get_webpage() -> Result<Html, Box<dyn std::error::Error>> {
|
||||||
let url = "https://informatique.up8.edu/licence-iv/edt";
|
let url = "https://informatique.up8.edu/licence-iv/edt";
|
||||||
let html = reqwest::get(url).await?.text().await?;
|
|
||||||
|
let client = reqwest::Client::builder().user_agent("bypass-rate_limit").build()?;
|
||||||
|
let html = client.get(url).send().await?.text().await?;
|
||||||
|
|
||||||
// Panic on error
|
// Panic on error
|
||||||
crate::utils::check_errors(&html, url);
|
crate::utils::check_errors(&html, url);
|
||||||
|
|
Reference in a new issue