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 IntlJaZhPage(page_module
.Page
):
11 def __init__(self
, url
, page_set
):
12 super(IntlJaZhPage
, 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_ja_zh.json'
18 class IntlJaZhPageSet(story
.StorySet
):
20 """ Popular pages in Japanese and Chinese. """
23 super(IntlJaZhPageSet
, self
).__init
__(
24 archive_data_file
='data/intl_ja_zh.json',
25 cloud_storage_bucket
=story
.PARTNER_BUCKET
)
28 # Why: #5 Japanese site
29 'http://www.amazon.co.jp',
31 'http://dtiblog.com/',
34 'http://hatena.ne.jp/',
36 # Why: #1 Japanese site
37 'http://www.yahoo.co.jp/',
38 # Why: #3 Japanese site
42 'http://cn.yahoo.com/',
43 # Why: #1 Chinese site
44 'http://www.baidu.com/s?wd=%D0%C2%20%CE%C5',
45 # Why: #2 Chinese site
47 # Why: #3 Chinese site
48 'http://www.taobao.com/index_global.php',
49 # Why: #4 Chinese site
50 'http://www.sina.com.cn/',
51 # Why: #5 Chinese site
52 # pylint: disable=C0301
53 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb480',
54 'http://udn.com/NEWS/mainpage.shtml',
55 'http://ruten.com.tw/'
59 self
.AddStory(IntlJaZhPage(url
, self
))