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
3 # found in the LICENSE file.
4 from telemetry
.page
import page
as page_module
5 from telemetry
.page
import shared_page_state
6 from telemetry
import story
9 class IntlHiRuPage(page_module
.Page
):
11 def __init__(self
, url
, page_set
):
12 super(IntlHiRuPage
, self
).__init
__(
13 url
=url
, page_set
=page_set
,
14 shared_page_state_class
=shared_page_state
.SharedDesktopPageState
)
15 self
.archive_data_file
= 'data/intl_hi_ru.json'
18 class IntlHiRuPageSet(story
.StorySet
):
20 """ Popular pages in Hindi and Russian. """
23 super(IntlHiRuPageSet
, self
).__init
__(
24 archive_data_file
='data/intl_hi_ru.json',
25 cloud_storage_bucket
=story
.PARTNER_BUCKET
)
28 # Why: #12 site in Russia
29 'http://www.rambler.ru/',
31 # pylint: disable=C0301
32 'http://yandex.ru/yandsearch?lr=102567&text=%D0%9F%D0%BE%D0%B3%D0%BE%D0%B4%D0%B0',
33 'http://photofile.ru/',
34 'http://ru.wikipedia.org/',
35 'http://narod.yandex.ru/',
37 'http://rutracker.org/forum/index.php',
38 'http://hindi.webdunia.com/',
39 # Why: #49 site in India
40 'http://hindi.oneindia.in/',
41 # Why: #9 site in India
42 'http://www.indiatimes.com/',
43 # Why: #2 site in India
44 'http://news.google.co.in/nwshp?tab=in&hl=hi'
48 self
.AddStory(IntlHiRuPage(url
, self
))