Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'spider' has no attribute 'make_random_useragent' #29

Closed
Veyronl opened this issue Apr 16, 2019 · 1 comment
Closed

Comments

@Veyronl
Copy link

Veyronl commented Apr 16, 2019

您好,我这面找不到这个,这个User-Agent,是不是可以定义一个静态的,也可以写成一个动态的random

@xianhu
Copy link
Owner

xianhu commented Apr 18, 2019

可以写成一个静态的。
你用的应该是以前的版本,最新版本中,不涉及这一块了,改用了fake_useragent这个第三方包

@xianhu xianhu closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants