| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # 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 |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from page_sets import page_cycler_story | 5 from page_sets import page_cycler_story |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 from telemetry.page import cache_temperature as cache_temperature_module | 7 from telemetry.page import cache_temperature as cache_temperature_module |
| 8 from telemetry.page import shared_page_state | 8 from telemetry.page import shared_page_state |
| 9 | 9 |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class IntlEsFrPtBrPageSet(story.StorySet): | 22 class IntlEsFrPtBrPageSet(story.StorySet): |
| 23 | 23 |
| 24 """ | 24 """ |
| 25 Popular pages in Romance languages Spanish, French and Brazilian Portuguese. | 25 Popular pages in Romance languages Spanish, French and Brazilian Portuguese. |
| 26 """ | 26 """ |
| 27 | 27 |
| 28 def __init__(self, cache_temperatures=None): | 28 def __init__(self, cache_temperatures=None): |
| 29 super(IntlEsFrPtBrPageSet, self).__init__( | 29 super(IntlEsFrPtBrPageSet, self).__init__( |
| 30 archive_data_file='data/intl_es_fr_pt-BR.json', | 30 archive_data_file='data/intl_es_fr_pt-BR.json', |
| 31 cloud_storage_bucket=story.PARTNER_BUCKET, | 31 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 32 verify_names=True) | |
| 33 if cache_temperatures is None: | 32 if cache_temperatures is None: |
| 34 cache_temperatures = [cache_temperature_module.ANY] | 33 cache_temperatures = [cache_temperature_module.ANY] |
| 35 | 34 |
| 36 urls_list = [ | 35 urls_list = [ |
| 37 'http://elmundo.es/', | 36 'http://elmundo.es/', |
| 38 'http://terra.es/', | 37 'http://terra.es/', |
| 39 # pylint: disable=line-too-long | 38 # pylint: disable=line-too-long |
| 40 'http://www.ebay.es/sch/i.html?_sacat=382&_trkparms=clkid%3D65489713890604
85883&_qi=RTM1381637', | 39 'http://www.ebay.es/sch/i.html?_sacat=382&_trkparms=clkid%3D65489713890604
85883&_qi=RTM1381637', |
| 41 'http://www.eltiempo.es/talavera-de-la-reina.html', | 40 'http://www.eltiempo.es/talavera-de-la-reina.html', |
| 42 'http://www.free.fr/adsl/index.html', | 41 'http://www.free.fr/adsl/index.html', |
| 43 'http://www.voila.fr/', | 42 'http://www.voila.fr/', |
| 44 'http://www.leboncoin.fr/annonces/offres/limousin/', | 43 'http://www.leboncoin.fr/annonces/offres/limousin/', |
| 45 'http://www.orange.fr/', | 44 'http://www.orange.fr/', |
| 46 # Why: #5 site in Brazil | 45 # Why: #5 site in Brazil |
| 47 'http://www.uol.com.br/', | 46 'http://www.uol.com.br/', |
| 48 # Why: #10 site in Brazil | 47 # Why: #10 site in Brazil |
| 49 # pylint: disable=line-too-long | 48 # pylint: disable=line-too-long |
| 50 'http://produto.mercadolivre.com.br/MLB-468424957-pelicula-protetora-smart
phone-h5500-e-h5300-43-frete-free-_JM' | 49 'http://produto.mercadolivre.com.br/MLB-468424957-pelicula-protetora-smart
phone-h5500-e-h5300-43-frete-free-_JM' |
| 51 ] | 50 ] |
| 52 | 51 |
| 53 for url in urls_list: | 52 for url in urls_list: |
| 54 for temp in cache_temperatures: | 53 for temp in cache_temperatures: |
| 55 self.AddStory(IntlEsFrPtBrPage(url, self, cache_temperature=temp)) | 54 self.AddStory(IntlEsFrPtBrPage(url, self, cache_temperature=temp)) |
| OLD | NEW |