tangled
alpha
login
or
join now
dekker.one
/
Fourmi
0
fork
atom
A web scraper build to search specific information for a given compound (and its pseudonyms)
0
fork
atom
overview
issues
pulls
pipelines
Added INFO message when no compatible source on response
dekker.one
11 years ago
a3e973ec
27529c41
+2
-1
1 changed file
expand all
collapse all
unified
split
FourmiCrawler
spider.py
+2
-1
FourmiCrawler/spider.py
···
34
34
"""
35
35
for source in self._sources:
36
36
if re.match(source.website, response.url):
37
37
-
log.msg("Url: " + response.url + " -> Source: " + source.website, level=log.DEBUG)
37
37
+
log.msg("URL: " + response.url + " -> Source: " + source.website, level=log.DEBUG)
38
38
return source.parse(response)
39
39
+
log.msg("URL: " + response.url + " -> No compatible source", level=log.INFO)
39
40
return None
40
41
41
42
def get_synonym_requests(self, compound, force=False):