Esempio n. 1
0
  def __init__(self):
    super(ProfileSafeUrlsPageSet, self).__init__(
      archive_data_file='data/profile_safe_urls.json',
      cloud_storage_bucket=story.PARTNER_BUCKET)

    # Only use the first 500 urls to prevent the .wpr files from getting too
    # big.
    safe_urls = profile_safe_url_list.GetShuffledSafeUrls()[0:500]
    for safe_url in safe_urls:
      self.AddStory(ProfileSafeUrlPage(safe_url, self))
    def __init__(self):
        super(ProfileSafeUrlsPageSet,
              self).__init__(archive_data_file='data/profile_safe_urls.json',
                             user_agent_type='desktop',
                             bucket=page_set_module.PARTNER_BUCKET)

        # Only use the first 500 urls to prevent the .wpr files from getting too
        # big.
        safe_urls = profile_safe_url_list.GetShuffledSafeUrls()[0:500]
        for safe_url in safe_urls:
            self.AddUserStory(ProfileSafeUrlPage(safe_url, self))