diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-09 16:48:14 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-09 16:48:14 +0200 |
commit | e8cbb1cd58853e28ea756ed2ccd77363c54e04d2 (patch) | |
tree | d59e2912c1da89429228fb9bc9d0284e2964537b /commcrawler/lookups.py | |
parent | 0d17f3696f66b0cb66e560d06ae40d7b87900a8a (diff) | |
download | Comm-on-net-e8cbb1cd58853e28ea756ed2ccd77363c54e04d2.tar.bz2 Comm-on-net-e8cbb1cd58853e28ea756ed2ccd77363c54e04d2.zip |
Let scrapy try domain with bad SSL
Diffstat (limited to 'commcrawler/lookups.py')
-rw-r--r-- | commcrawler/lookups.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commcrawler/lookups.py b/commcrawler/lookups.py index 106a69a..396490b 100644 --- a/commcrawler/lookups.py +++ b/commcrawler/lookups.py @@ -14,7 +14,7 @@ class TargetLookup(LookupChannel): def get_query(self, q, request): query = Q() for term in q.strip().split(' '): - subquery = Q(name__icontains=term) + subquery = Q(name__icontains=term) | Q(url__icontains=term) query &= subquery return self.model.objects.filter(query).order_by('name')[:20] |