We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bba2c4 commit 04537b1Copy full SHA for 04537b1
usaco_util.ts
@@ -9,8 +9,8 @@ async function addProblem(id: number) {
9
console.log('Adding problem ', id);
10
try {
11
const url = `https://usaco.org/index.php?page=viewproblem2&cpid=${id}`;
12
- const response = await axios.get(url);
13
- const htmlContent: string = response.data;
+ const response = await (await fetch(url)).text();
+ const htmlContent: string = response;
14
const problem = htmlContent.match(/<h2> Problem (\d). (.*) <\/h2>/)!;
15
const number = problem[1],
16
title = problem[2];
0 commit comments