Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 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 | |
| 5 from telemetry.page import page as page_module | |
| 6 from telemetry.page import shared_page_state | |
| 7 from telemetry import story | |
| 8 | |
| 9 | |
| 10 class PopularUrlsPage(page_module.Page): | |
| 11 | |
| 12 def __init__(self, url, page_set): | |
| 13 super(PopularUrlsPage, self).__init__( | |
| 14 url=url, page_set=page_set, | |
| 15 shared_page_state_class=shared_page_state.SharedMobilePageState, | |
| 16 credentials_path='data/credentials.json') | |
| 17 | |
| 18 urls_list = [ | |
|
jbudorick
2016/05/02 17:46:12
nit: I_AM_A_MODULE_SCOPE_CONSTANT
also, I'd prefe
| |
| 19 "http://www.google.com/", | |
| 20 "http://www.facebook.com/", | |
| 21 "http://www.youtube.com/", | |
| 22 "http://www.yahoo.com/", | |
| 23 "http://www.baidu.com/", | |
| 24 "http://www.wikipedia.org/", | |
| 25 "http://www.live.com/", | |
| 26 "http://www.twitter.com/", | |
| 27 "http://www.qq.com/", | |
| 28 "http://www.amazon.com/", | |
| 29 "http://www.blogspot.com/", | |
| 30 "http://www.linkedin.com/", | |
| 31 "http://www.google.co.in/", | |
| 32 "http://www.taobao.com/", | |
| 33 "http://www.sina.com.cn/", | |
| 34 "http://www.yahoo.co.jp/", | |
| 35 "http://www.msn.com/", | |
| 36 "http://www.wordpress.com/", | |
| 37 "http://www.t.co/", | |
| 38 "http://www.google.de/", | |
| 39 "http://www.google.com.hk/", | |
| 40 "http://www.ebay.com/", | |
| 41 "http://www.googleusercontent.com/", | |
| 42 "http://www.google.co.uk/", | |
| 43 "http://www.google.co.jp/", | |
| 44 "http://www.yandex.ru/", | |
| 45 "http://www.163.com/", | |
| 46 "http://www.google.fr/", | |
| 47 "http://www.weibo.com/", | |
| 48 "http://www.bing.com/", | |
| 49 "http://www.microsoft.com/", | |
| 50 "http://www.google.com.br/", | |
| 51 "http://www.mail.ru/", | |
| 52 "http://www.tumblr.com/", | |
| 53 "http://www.pinterest.com/", | |
| 54 "http://www.paypal.com/", | |
| 55 "http://www.apple.com/", | |
| 56 "http://www.google.it/", | |
| 57 "http://www.blogger.com/", | |
| 58 "http://www.babylon.com/", | |
| 59 "http://www.google.es/", | |
| 60 "http://www.google.ru/", | |
| 61 "http://www.craigslist.org/", | |
| 62 "http://www.sohu.com/", | |
| 63 "http://www.imdb.com/", | |
| 64 "http://www.flickr.com/", | |
| 65 "http://www.bbc.co.uk/", | |
| 66 "http://www.xvideos.com/", | |
| 67 "http://www.fc2.com/", | |
| 68 "http://www.go.com/", | |
| 69 "http://www.xhamster.com/", | |
| 70 "http://www.ask.com/", | |
| 71 "http://www.ifeng.com/", | |
| 72 "http://www.google.com.mx/", | |
| 73 "http://www.youku.com/", | |
| 74 "http://www.google.ca/", | |
| 75 "http://www.livejasmin.com/", | |
| 76 "http://www.tmall.com/", | |
| 77 "http://www.zedo.com/", | |
| 78 "http://www.imgur.com/", | |
| 79 "http://www.conduit.com/", | |
| 80 "http://www.odnoklassniki.ru/", | |
| 81 "http://www.cnn.com/", | |
| 82 "http://www.adobe.com/", | |
| 83 "http://www.google.co.id/", | |
| 84 "http://www.mediafire.com/", | |
| 85 "http://www.thepiratebay.se/", | |
| 86 "http://www.pornhub.com/", | |
| 87 "http://www.aol.com/", | |
| 88 "http://www.hao123.com/", | |
| 89 "http://www.espn.go.com/", | |
| 90 "http://www.alibaba.com/", | |
| 91 "http://www.ebay.de/", | |
| 92 "http://www.google.com.tr/", | |
| 93 "http://www.rakuten.co.jp/", | |
| 94 "http://www.about.com/", | |
| 95 "http://www.avg.com/", | |
| 96 "http://www.google.com.au/", | |
| 97 "http://www.blogspot.in/", | |
| 98 "http://www.wordpress.org/", | |
| 99 "http://www.chinaz.com/", | |
| 100 "http://www.ameblo.jp/", | |
| 101 "http://www.ebay.co.uk/", | |
| 102 "http://www.godaddy.com/", | |
| 103 "http://www.amazon.de/", | |
| 104 "http://www.google.pl/", | |
| 105 "http://www.uol.com.br/", | |
| 106 "http://www.360buy.com/", | |
| 107 "http://www.stackoverflow.com/", | |
| 108 "http://www.amazon.co.jp/", | |
| 109 "http://www.bp.blogspot.com/", | |
| 110 "http://www.dailymotion.com/", | |
| 111 "http://www.huffingtonpost.com/", | |
| 112 "http://www.4shared.com/", | |
| 113 "http://www.mercadolivre.com.br/", | |
| 114 "http://www.vagalume.com.br/", | |
| 115 "http://www.letras.mus.br/", | |
| 116 "http://www.abril.com.br/", | |
| 117 "http://www.detik.com/", | |
| 118 "http://www.stafaband.info/", | |
| 119 "http://www.kaskus.co.id/", | |
| 120 "http://www.tribunnews.com/", | |
| 121 "http://www.kompas.com/", | |
| 122 "http://www.indianrail.gov.in/", | |
| 123 "http://www.flipkart.com/", | |
| 124 "http://www.snapdeal.com/", | |
| 125 "http://www.espncricinfo.com/", | |
| 126 "http://www.amazon.in/", | |
| 127 ] | |
| 128 | |
|
rnephew (Reviews Here)
2016/05/02 18:02:52
nit: 2 lines.
| |
| 129 class PopularUrlsPageSet(story.StorySet): | |
| 130 """Visit list of popular urls from webpage replay.""" | |
| 131 | |
| 132 def __init__(self): | |
| 133 super(PopularUrlsPageSet, self).__init__( | |
| 134 archive_data_file='data/popular_urls.json', | |
| 135 cloud_storage_bucket=story.PARTNER_BUCKET) | |
| 136 | |
| 137 for url in urls_list: | |
| 138 self.AddStory(PopularUrlsPage(url, self)) | |
| OLD | NEW |