Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

在哪里设UA,具体设成什么,重定向的地址是什么,~~我一问三不知~~ #15

Closed
shimachao opened this issue Mar 15, 2019 · 1 comment

Comments

@shimachao
Copy link

在哪里设UA,具体设成什么,重定向的地址是什么,我一问三不知

Originally posted by @Aqua-Dream in #14 (comment)

就是自己加了一个downloadMiddleware,在它的process_request方法中调用request.headers.setdefault设置了User-Agent。被重定向到一个百度搜索页面

@Aqua-Dream
Copy link
Owner

可能你UA填的不对吧,我也不好验证。你为什么要加UA?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants