| 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 from telemetry import story |
| 5 from telemetry.page import page as page_module |
| 4 from telemetry.page import shared_page_state | 6 from telemetry.page import shared_page_state |
| 5 from telemetry.page import page as page_module | |
| 6 from telemetry.page import page_set as page_set_module | |
| 7 | 7 |
| 8 | 8 |
| 9 class IntlKoThViPage(page_module.Page): | 9 class IntlKoThViPage(page_module.Page): |
| 10 | 10 |
| 11 def __init__(self, url, page_set): | 11 def __init__(self, url, page_set): |
| 12 super(IntlKoThViPage, self).__init__( | 12 super(IntlKoThViPage, self).__init__( |
| 13 url=url, page_set=page_set, | 13 url=url, page_set=page_set, |
| 14 shared_page_state_class=shared_page_state.SharedDesktopPageState) | 14 shared_page_state_class=shared_page_state.SharedDesktopPageState) |
| 15 self.archive_data_file = 'data/intl_ko_th_vi.json' | 15 self.archive_data_file = 'data/intl_ko_th_vi.json' |
| 16 | 16 |
| 17 | 17 |
| 18 class IntlKoThViPageSet(page_set_module.PageSet): | 18 class IntlKoThViPageSet(story.StorySet): |
| 19 | 19 |
| 20 """ Popular pages in Korean, Thai and Vietnamese. """ | 20 """ Popular pages in Korean, Thai and Vietnamese. """ |
| 21 | 21 |
| 22 def __init__(self): | 22 def __init__(self): |
| 23 super(IntlKoThViPageSet, self).__init__( | 23 super(IntlKoThViPageSet, self).__init__( |
| 24 archive_data_file='data/intl_ko_th_vi.json', | 24 archive_data_file='data/intl_ko_th_vi.json', |
| 25 bucket=page_set_module.PARTNER_BUCKET) | 25 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 26 | 26 |
| 27 urls_list = [ | 27 urls_list = [ |
| 28 # Why: #7 site in Vietnam | 28 # Why: #7 site in Vietnam |
| 29 'http://us.24h.com.vn/', | 29 'http://us.24h.com.vn/', |
| 30 # Why: #6 site in Vietnam | 30 # Why: #6 site in Vietnam |
| 31 'http://vnexpress.net/', | 31 'http://vnexpress.net/', |
| 32 # Why: #18 site in Vietnam | 32 # Why: #18 site in Vietnam |
| 33 'http://vietnamnet.vn/', | 33 'http://vietnamnet.vn/', |
| 34 # Why: #5 site in Vietnam | 34 # Why: #5 site in Vietnam |
| 35 # pylint: disable=C0301 | 35 # pylint: disable=C0301 |
| 36 'http://news.zing.vn/the-gioi/ba-dam-thep-margaret-thatcher-qua-doi/a31289
5.html#home_noibat1', | 36 'http://news.zing.vn/the-gioi/ba-dam-thep-margaret-thatcher-qua-doi/a31289
5.html#home_noibat1', |
| 37 'http://kenh14.vn/home.chn', | 37 'http://kenh14.vn/home.chn', |
| 38 # Why: #5 site in Korea | 38 # Why: #5 site in Korea |
| 39 'http://www.naver.com/', | 39 'http://www.naver.com/', |
| 40 # Why: #9 site in Korea | 40 # Why: #9 site in Korea |
| 41 'http://www.daum.net/', | 41 'http://www.daum.net/', |
| 42 # Why: #25 site in Korea | 42 # Why: #25 site in Korea |
| 43 'http://www.donga.com/', | 43 'http://www.donga.com/', |
| 44 'http://www.chosun.com/', | 44 'http://www.chosun.com/', |
| 45 'http://www.danawa.com/', | 45 'http://www.danawa.com/', |
| 46 # Why: #10 site in Thailand | 46 # Why: #10 site in Thailand |
| 47 'http://pantip.com/', | 47 'http://pantip.com/', |
| 48 'http://thaimisc.com/' | 48 'http://thaimisc.com/' |
| 49 ] | 49 ] |
| 50 | 50 |
| 51 for url in urls_list: | 51 for url in urls_list: |
| 52 self.AddUserStory(IntlKoThViPage(url, self)) | 52 self.AddUserStory(IntlKoThViPage(url, self)) |
| OLD | NEW |