OLD | NEW |
1 #!/usr/bin/python2.4 | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
5 | 4 |
6 """Component for automatically creating masks of changing areas of a website. | 5 """Component for automatically creating masks of changing areas of a website. |
7 | 6 |
8 Works by repeated invokation of a browser and scraping of the resulting page. | 7 Works by repeated invokation of a browser and scraping of the resulting page. |
9 Areas that differ will be added to the auto-generated mask. The mask generator | 8 Areas that differ will be added to the auto-generated mask. The mask generator |
10 considers the mask complete when further scrapes fail to produce any differences | 9 considers the mask complete when further scrapes fail to produce any differences |
11 in the mask. | 10 in the mask. |
12 """ | 11 """ |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 for url in complete_list: | 263 for url in complete_list: |
265 print " ", url.url | 264 print " ", url.url |
266 print " %d masks failed with too many errors" % len(error_list) | 265 print " %d masks failed with too many errors" % len(error_list) |
267 for url in error_list: | 266 for url in error_list: |
268 print " ", url.url | 267 print " ", url.url |
269 if scrape_pass >= command["--giveup"]: | 268 if scrape_pass >= command["--giveup"]: |
270 print (" %d masks were not completed before " | 269 print (" %d masks were not completed before " |
271 "reaching the giveup threshhold" % len(url_list)) | 270 "reaching the giveup threshhold" % len(url_list)) |
272 for url in url_list: | 271 for url in url_list: |
273 print " ", url.url | 272 print " ", url.url |
274 | |
OLD | NEW |