Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.62 KB | None | 0 0
  1.  
  2. # USA today traffic.
  3.  
  4. page :usa_today_hp, url: "http://www.usatoday.com/", title: 'USA TODAY'
  5. page :usa_today_video, url: "http://www.usatoday.com/media/latest/videos/news/", title: 'Videos,Photos'
  6. unit :travel_section,    id: 156352, type: :google
  7. unit :tech_section,    id: 156351, type: :google
  8. unit :sport_section,    id: 156347, type: :google
  9. unit :news_section,    id: 156343, type: :google
  10. unit :money_section,    id: 156350, type: :google
  11. unit :mainStory_section,    id: 156380, type: :google
  12. unit :mainHeadlines_section,    id: 156391, type: :google
  13. unit :life_section,    id: 156349, type: :google
  14.  
  15. dynamic_pixel :Adblocker
  16.  
  17.  
  18. # Sports fan
  19. 6.times do
  20.   visit :usa_today_hp
  21.   click :sport_section
  22.   new_user
  23. end
  24.  
  25. # News fan
  26. 8.times do
  27.   visit :usa_today_hp
  28.   click :news_section
  29.   new_user
  30. end
  31.  
  32. # Tech fan
  33. 10.times do
  34.   visit :usa_today_hp
  35.   click :tech_section
  36.   new_user
  37. end
  38.  
  39. # Adblocker user
  40. 5.times do
  41.   visit :usa_today_hp
  42.   dpx :Adblocker
  43.   new_user
  44. end
  45.  
  46. # Video fan
  47. 15.times do
  48.   visit :usa_today_video
  49.   new_user
  50. end
  51.  
  52. # Travel fan
  53. 3.times do
  54.   visit :usa_today_hp
  55.   click :travel_section
  56.   new_user
  57. end
  58.  
  59. # Life fan
  60. 2.times do
  61.   visit :usa_today_hp
  62.   click :life_section
  63.   new_user
  64. end
  65.  
  66. # Money fan
  67. 7.times do
  68.   visit :usa_today_hp
  69.   click :money_section
  70.   new_user
  71. end
  72.  
  73. # etc fan
  74. 7.times do
  75.   visit :usa_today_hp
  76.   click :mainStory_section
  77.   new_user
  78. end
  79.  
  80. # etc2 fan
  81. 7.times do
  82.   visit :usa_today_hp
  83.   click :mainHeadlines_section
  84.   new_user
  85. end
  86.  
  87. # user agents:
  88. # desktop (windows) + chrome
  89.  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
  90.  
  91. # desktop (mac) + safari
  92. Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A
  93.  
  94. # desktop (windows) + firefox
  95. Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1
  96.  
  97. # desktop (windows) + IE
  98. Mozilla/5.0 (Windows; U; MSIE 9.0; WIndows NT 9.0; en-US))
  99.  
  100.  
  101. # Tablet (windows) + IE
  102. Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.0; Tablet PC 2.0; InfoPath.3; .NET4.0C; .NET4.0E)
  103.  
  104. # Mobile (iphone) + chrome
  105. Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3
  106.  
  107. # Mobile (android) + chrome
  108. Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement