Closed Ahacad closed 3 years ago
By the way, it seems a good idea to add .catch
after making axios requests.
By the way, it seems a good idea to add
.catch
after making axios requests.
Maybe use an axois interceptor
请求失败是因为选课没开吧?
不是把,jwfw 开了的呀
看起来是 jwfw API 改了,从 POST 改成 GET 了,现在用 URL Query 而非 Form Data 传参数, @Ahacad 你打算试试修一下吗?
emmmm,等我考完把😅,本来复习累了想试试一个小时里面能不能搞定,现在看来还是等 7.1 后 :sweat_smile:
ok
我看了一下貌似没有变 GET?
要不 @CLDXiang 试试能不能跑起来,我怀疑是这里代理的问题
好的应该就是我代理问题,axios 里面加一个选项 proxy: false 取消自动检测当前环境的代理
之后就爬取成功
ok,目前看起来是 POST 和 GET API 同时存在
诶我搜索的时候没有这个 GET 的请求。。
When doing
yarn jwfw
, I have set theSEMESTER_ID
to 364 and the wholeJWFW_COOKIES
withcookie
,JSESSIONID
,HM_lvt_2358...
, etc.