Skip to content

Commit

Permalink
fix(crawler): try fix vjudge crawler
Browse files Browse the repository at this point in the history
The crawler works fine locally. So I guess it is blocked by cdn on cloud. Reset the agent can make it work for now.
  • Loading branch information
Liu233w committed Mar 15, 2024
1 parent 9a93cdb commit 1eee295
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crawler/crawlers/vjudge.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ async function tryLogin() {
// console.log(`login vjudge: "${config.crawler_login_user}" "${config.crawler_login_password}"`)

agent = request.agent()
.set('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36')

let loginStatus
try {
Expand Down

0 comments on commit 1eee295

Please sign in to comment.