code4craft / webmagic

A scalable web crawler framework for Java.
http://webmagic.io/
Apache License 2.0
11.38k stars 4.18k forks source link

想要获取到最后一次重定向到的最终url #1110

Open keatonLiu opened 1 year ago

keatonLiu commented 1 year ago

目前爬虫只能获取到请求的url,而不能获取最后重定向的url,而且也不支持设定自定义的RedirectStrategy,所以很难获取这个url,不知道可不可以通过把requestContext放到onSuccess()里面来获取