Skip to content

Commit

Permalink
Load score for seeds if available
Browse files Browse the repository at this point in the history
  • Loading branch information
plafl committed Nov 16, 2015
1 parent 2703513 commit 18ffb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aduana/frontera.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def add_seeds(self, seeds):
self._scheduler.add(
aduana.CrawledPage(
'_seed_{0}'.format(self._n_seeds),
[(link.url, 1.0) for link in seeds]
[(link.url, link.meta['scrapy_meta'].get('score', 1.0)) for link in seeds]
)
)
self._n_seeds += 1
Expand Down

0 comments on commit 18ffb3f

Please sign in to comment.