Feed text content instead of binary to robots.txt parser.
This commit is contained in:
parent
cdbeb65ede
commit
781bac0ca2
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ def get_robotstxt_parser(url, session=None):
|
|||
elif req.status_code >= 400:
|
||||
rp.allow_all = True
|
||||
elif req.status_code == 200:
|
||||
rp.parse(req.content.splitlines())
|
||||
rp.parse(req.text.splitlines())
|
||||
return rp
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue