css_test.py
| 1 |
# coding=utf-8
|
|---|---|
| 2 |
|
| 3 |
from lxml.cssselect import CSSSelector |
| 4 |
from lxml.etree import fromstring |
| 5 |
|
| 6 |
sel = CSSSelector('.app-title,#app-rate-text + li')
|
| 7 |
|
| 8 |
sel = CSSSelector('#app-rate-text + li')
|
| 9 |
sel = CSSSelector('.simple-list')
|
| 10 |
|
| 11 |
h = fromstring('''
|
| 12 |
<!DOCTYPE html>
|
| 13 |
<html>
|
| 14 |
<head>
|
| 15 |
|
| 16 |
<title>Website Monitoring | IT Operations Management | Splunk Apps</title>
|
| 17 |
|
| 18 |
|
| 19 |
<meta charset="UTF-8" />
|
| 20 |
<link rel="icon" href="https://d38o4gzaohghws.cloudfront.net/static/favicon.ico" />
|
| 21 |
<link href="https://d38o4gzaohghws.cloudfront.net/static/bin/main.9f017b05ce.css" rel="stylesheet" />
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
</head>
|
| 26 |
<body id="details">
|
| 27 |
<div id="wrapper">
|
| 28 |
<div id="header-base-current" class="navbar navbar-inverse navbar-fixed-top">
|
| 29 |
<div class="navbar-inner">
|
| 30 |
<div class="container">
|
| 31 |
<ul class="nav pull-right nav-small">
|
| 32 |
<li><a href="http://www.splunk.com" sp-click="splunkcom-header">Splunk.com</a></li>
|
| 33 |
<li>
|
| 34 |
<div id="header-base-menu-community" class="dropdown">
|
| 35 |
<a class="dropdown-toggle" data-toggle="dropdown" href="#" sp-click="community-dropdown">Community</a>
|
| 36 |
<ul class="dropdown-menu" role="menu">
|
| 37 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://community.splunk.com/">Community</a></li>
|
| 38 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://docs.splunk.com/">Documentation</a></li>
|
| 39 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="/">Apps</a></li>
|
| 40 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://answers.splunk.com/">Answers</a></li>
|
| 41 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://wiki.splunk.com/">Wiki</a></li>
|
| 42 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://blogs.splunk.com/">Blogs</a></li>
|
| 43 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://dev.splunk.com/">Developers</a></li>
|
| 44 |
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://www.splunk.com/goto/conf">.conf2014</a></li>
|
| 45 |
<li class="lastlist" role="presentation"><a role="menuitem" tabindex="-1" href="http://www.co-store.com/splunk">Schwag Store</a></li>
|
| 46 |
</ul>
|
| 47 |
</div>
|
| 48 |
</li>
|
| 49 |
|
| 50 |
<li><a href="/logout/">Logout</a></li>
|
| 51 |
<li><a href="http://answers.splunk.com/users/LukeMurphey">Luke Murphey</a></li>
|
| 52 |
|
| 53 |
</ul>
|
| 54 |
</div>
|
| 55 |
<div class="container">
|
| 56 |
<ul class="nav nav-brand">
|
| 57 |
<li class="dropdown">
|
| 58 |
<a class="brand logo-splunk logo-splunkbase" href="/">Splunkbase</a>
|
| 59 |
</li>
|
| 60 |
</ul>
|
| 61 |
<ul class="nav pull-right">
|
| 62 |
<li>
|
| 63 |
<a href="/apps/#/">Browse</a>
|
| 64 |
</li>
|
| 65 |
<li>
|
| 66 |
<a href="/develop/">Develop</a>
|
| 67 |
</li>
|
| 68 |
<li>
|
| 69 |
<form id="header-app-search" class="form-search" method="GET" action="/apps/">
|
| 70 |
<input name="search" type="text" class="input span3" placeholder="Search apps..."/>
|
| 71 |
<i class="icon-search"></i>
|
| 72 |
</form>
|
| 73 |
</li>
|
| 74 |
</ul>
|
| 75 |
|
| 76 |
</div>
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
|
| 80 |
<header>
|
| 81 |
<div class="container-wrapper">
|
| 82 |
<div class="container">
|
| 83 |
<div class="row-fluid">
|
| 84 |
<div class="pull-left" style="width:630px">
|
| 85 |
<div class="app-icon active" style="background-image: url('https://d38o4gzaohghws.cloudfront.net/media/public/icons/6e204f56-f195-11e3-ba6d-0a7689e5c03e.png')"></div>
|
| 86 |
<h1 class="app-title ns-textfill clearfix">Website Monitoring</h1>
|
| 87 |
</div>
|
| 88 |
<div class="pull-right">
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
<div id="unrestricted" class="well-inverse btn-wrapper">
|
| 93 |
<div id="download-dropdown" class="btn-group">
|
| 94 |
<a href="/app/1493/release/1.0.2/agree/"
|
| 95 |
class="btn btn-large btn-primary"><i class="icon-download-alt"></i> Download</a>
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
|
| 99 |
|
| 100 |
</div>
|
| 101 |
</div>
|
| 102 |
</div>
|
| 103 |
</div>
|
| 104 |
</header>
|
| 105 |
|
| 106 |
<div id="app-content" class="page-content">
|
| 107 |
<div class="container">
|
| 108 |
<div class="row-fluid">
|
| 109 |
<div class="span8 well well-white">
|
| 110 |
|
| 111 |
<div class="tab-content">
|
| 112 |
<div id="app-details" class="tab-pane active">
|
| 113 |
<div>
|
| 114 |
<h5></h5>
|
| 115 |
<p>Monitor websites to detect downtime and performance problems. This app uses a modular input that can be setup easily (in 5 minutes or less).</p>
|
| 116 |
</div>
|
| 117 |
|
| 118 |
|
| 119 |
<div id="myCarousel" class="carousel slide screenshot-wrapper">
|
| 120 |
|
| 121 |
|
| 122 |
<div class="carousel-inner">
|
| 123 |
|
| 124 |
<div class="item active ">
|
| 125 |
<img src="https://d38o4gzaohghws.cloudfront.net/media/public/screenshots/6e2079b8-f195-11e3-ba6d-0a7689e5c03e.png"/>
|
| 126 |
</div>
|
| 127 |
|
| 128 |
<div class="item ">
|
| 129 |
<img src="https://d38o4gzaohghws.cloudfront.net/media/public/screenshots/5328f0d4-ba97-11e3-970f-06550dde6d3e.png"/>
|
| 130 |
</div>
|
| 131 |
|
| 132 |
<div class="item ">
|
| 133 |
<img src="https://d38o4gzaohghws.cloudfront.net/media/public/screenshots/93d588e0-ba97-11e3-970f-06550dde6d3e.png"/>
|
| 134 |
</div>
|
| 135 |
|
| 136 |
</div>
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
<div class="carousel-indicators-wrapper">
|
| 141 |
<ol class="carousel-indicators">
|
| 142 |
|
| 143 |
<li data-target="#myCarousel" data-slide-to="0" class="active" ></li>
|
| 144 |
|
| 145 |
<li data-target="#myCarousel" data-slide-to="1" ></li>
|
| 146 |
|
| 147 |
<li data-target="#myCarousel" data-slide-to="2" ></li>
|
| 148 |
|
| 149 |
</ol>
|
| 150 |
</div>
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
<a class="carousel-control left" href="#myCarousel" data-slide="prev"><i class="icon-chevron-left"></i></a>
|
| 156 |
<a class="carousel-control right" href="#myCarousel" data-slide="next"><i class="icon-chevron-right"></i></a>
|
| 157 |
|
| 158 |
|
| 159 |
</div>
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
<div id="releases" class="not-directory">
|
| 164 |
<div class="row-fluid">
|
| 165 |
<h5 style="float:left;margin:0">Release Notes</h5>
|
| 166 |
<select class="btn pull-right" style="width:140px">
|
| 167 |
|
| 168 |
|
| 169 |
<option value="1.0.2"
|
| 170 |
|
| 171 |
|
| 172 |
>Version: 1.0.2</option>
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
<option value="1.0.1"
|
| 177 |
>Version: 1.0.1</option>
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
<option value="1.0"
|
| 182 |
>Version: 1.0</option>
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
<option value="0.9"
|
| 187 |
>Version: 0.9</option>
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
<option value="0.8"
|
| 192 |
>Version: 0.8</option>
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
<option value="0.7"
|
| 197 |
>Version: 0.7</option>
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
<option value="0.6"
|
| 202 |
>Version: 0.6</option>
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
<option value="0.5"
|
| 207 |
>Version: 0.5</option>
|
| 208 |
|
| 209 |
|
| 210 |
<option value="all">All versions</option>
|
| 211 |
</select>
|
| 212 |
</div>
|
| 213 |
<div class="divider" style="margin: 5px -20px 10px"></div>
|
| 214 |
<div class="row-fluid">
|
| 215 |
<div id="release-selected"></div>
|
| 216 |
<div id="release-templates" style="display: none">
|
| 217 |
<div data-release="all">
|
| 218 |
|
| 219 |
|
| 220 |
<div data-release="1.0.2">
|
| 221 |
<p class="features">Status overview page now automatically starts the search</p>
|
| 222 |
<p class="clearfix">
|
| 223 |
<span class="meta" style="display:block;margin:0">
|
| 224 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>June 11, 2014</span>
|
| 225 |
<span class="meta" style="display:block;margin:0">
|
| 226 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 227 |
<span class="meta" style="display:block;margin:0">
|
| 228 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>6.1, 6.0</span>
|
| 229 |
|
| 230 |
<a href="/app/1493/release/1.0.2/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 1.0.2</a>
|
| 231 |
|
| 232 |
</p>
|
| 233 |
</div>
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
<div data-release="1.0.1">
|
| 238 |
<p class="features">Fixed issue where the proxy configuration option was set as required on the modular input screen but is optional</p>
|
| 239 |
<p class="clearfix">
|
| 240 |
<span class="meta" style="display:block;margin:0">
|
| 241 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>April 17, 2014</span>
|
| 242 |
<span class="meta" style="display:block;margin:0">
|
| 243 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 244 |
<span class="meta" style="display:block;margin:0">
|
| 245 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>6.1, 6.0</span>
|
| 246 |
|
| 247 |
<a href="/app/1493/release/1.0.1/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 1.0.1</a>
|
| 248 |
|
| 249 |
</p>
|
| 250 |
</div>
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
<div data-release="1.0">
|
| 255 |
<p class="features">* Added support for using multiple proxy servers (see http://goo.gl/8pa8Wv)<br />* Added logging of the proxy server used when the ping was performed<br />* Fixed issue where the titles of ping requests contained spaces were not shown in the interface correctly</p>
|
| 256 |
<p class="clearfix">
|
| 257 |
<span class="meta" style="display:block;margin:0">
|
| 258 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>April 2, 2014</span>
|
| 259 |
<span class="meta" style="display:block;margin:0">
|
| 260 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 261 |
<span class="meta" style="display:block;margin:0">
|
| 262 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>6.0</span>
|
| 263 |
|
| 264 |
<a href="/app/1493/release/1.0/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 1.0</a>
|
| 265 |
|
| 266 |
</p>
|
| 267 |
</div>
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
<div data-release="0.9">
|
| 272 |
<p class="features">* Added support for custom root endpoints<br />* Fixed issue where the searches defaulted to searching all-time<br />* Added site changes dashboard</p>
|
| 273 |
<p class="clearfix">
|
| 274 |
<span class="meta" style="display:block;margin:0">
|
| 275 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>Nov. 7, 2013</span>
|
| 276 |
<span class="meta" style="display:block;margin:0">
|
| 277 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 278 |
<span class="meta" style="display:block;margin:0">
|
| 279 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>6.0, 5.0</span>
|
| 280 |
|
| 281 |
<a href="/app/1493/release/0.9/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 0.9</a>
|
| 282 |
|
| 283 |
</p>
|
| 284 |
</div>
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
<div data-release="0.8">
|
| 289 |
<p class="features">Added support for using a proxy server<br />Updated the app to work better on Splunk 6.0</p>
|
| 290 |
<p class="clearfix">
|
| 291 |
<span class="meta" style="display:block;margin:0">
|
| 292 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>Oct. 25, 2013</span>
|
| 293 |
<span class="meta" style="display:block;margin:0">
|
| 294 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 295 |
<span class="meta" style="display:block;margin:0">
|
| 296 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>6.0, 5.0</span>
|
| 297 |
|
| 298 |
<a href="/app/1493/release/0.8/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 0.8</a>
|
| 299 |
|
| 300 |
</p>
|
| 301 |
</div>
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
<div data-release="0.7">
|
| 306 |
<p class="features">* Added availability calculation to the status history dashboard</p>
|
| 307 |
<p class="clearfix">
|
| 308 |
<span class="meta" style="display:block;margin:0">
|
| 309 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>June 27, 2013</span>
|
| 310 |
<span class="meta" style="display:block;margin:0">
|
| 311 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 312 |
<span class="meta" style="display:block;margin:0">
|
| 313 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>5.0</span>
|
| 314 |
|
| 315 |
<a href="/app/1493/release/0.7/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 0.7</a>
|
| 316 |
|
| 317 |
</p>
|
| 318 |
</div>
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
<div data-release="0.6">
|
| 323 |
<p class="features">* Added a dashboard to show the history of a monitored site <br />* Added highlighting of high response times in red on the main overview dashboard<br />* Fixed issues where the modular input failed to validate parameters correctly and log error messages</p>
|
| 324 |
<p class="clearfix">
|
| 325 |
<span class="meta" style="display:block;margin:0">
|
| 326 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>April 25, 2013</span>
|
| 327 |
<span class="meta" style="display:block;margin:0">
|
| 328 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 329 |
<span class="meta" style="display:block;margin:0">
|
| 330 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>5.0</span>
|
| 331 |
|
| 332 |
<a href="/app/1493/release/0.6/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 0.6</a>
|
| 333 |
|
| 334 |
</p>
|
| 335 |
</div>
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
<div data-release="0.5">
|
| 340 |
<p class="features"></p>
|
| 341 |
<p class="clearfix">
|
| 342 |
<span class="meta" style="display:block;margin:0">
|
| 343 |
<i class="icon-time" data-toggle="tooltip" title="Updated" data-placement="bottom"></i>April 11, 2013</span>
|
| 344 |
<span class="meta" style="display:block;margin:0">
|
| 345 |
<i class="icon-desktop" data-toggle="tooltip" title="Platforms" data-placement="bottom"></i>Platform Independent</span>
|
| 346 |
<span class="meta" style="display:block;margin:0">
|
| 347 |
<i class="icon-chevron-right" data-toggle="tooltip" title="Splunk Compatibility" data-placement="bottom"></i>5.0</span>
|
| 348 |
|
| 349 |
<a href="/app/1493/release/0.5/agree/" class="btn btn-secondary btn-small" style="margin:0;margin-top:10px"><i class="icon-download-alt"></i>Version 0.5</a>
|
| 350 |
|
| 351 |
</p>
|
| 352 |
</div>
|
| 353 |
|
| 354 |
|
| 355 |
</div>
|
| 356 |
</div>
|
| 357 |
</div>
|
| 358 |
</div>
|
| 359 |
|
| 360 |
</div>
|
| 361 |
<div id="app-resources" class="tab-pane"></div>
|
| 362 |
</div>
|
| 363 |
</div>
|
| 364 |
<div id="app-sidebar" class="span4" >
|
| 365 |
<div class="well well-gray" style="overflow: visible; margin-left:20px">
|
| 366 |
|
| 367 |
<div id="app-star-ave" class="app-star">
|
| 368 |
<i class="star"></i>
|
| 369 |
<i class="star"></i>
|
| 370 |
<i class="star"></i>
|
| 371 |
<i class="star"></i>
|
| 372 |
<i class="star"></i>
|
| 373 |
<span class="review-count">6 ratings</span>
|
| 374 |
</div>
|
| 375 |
<div id="app-rate-app">
|
| 376 |
<div class="dropdown">
|
| 377 |
<a id="app-rate-btn"
|
| 378 |
|
| 379 |
class="dropdown-toggle btn auth-required"
|
| 380 |
data-toggle="dropdown"
|
| 381 |
data-target="#"
|
| 382 |
href="1493"><i class="icon-star-empty"></i>Rate this app</a>
|
| 383 |
<ul class="dropdown-menu" role="menu">
|
| 384 |
<li role="presentation">
|
| 385 |
|
| 386 |
<div id="app-star-rate" class="app-star clearfix">
|
| 387 |
<i data-rating="1" class="star"></i>
|
| 388 |
<div class="app-star-annotation help-block">Doesn't work as expected</div>
|
| 389 |
<i data-rating="2" class="star"></i>
|
| 390 |
<div class="app-star-annotation help-block">Works but unstable</div>
|
| 391 |
<i data-rating="3" class="star"></i>
|
| 392 |
<div class="app-star-annotation help-block">Works but needs improvement</div>
|
| 393 |
<i data-rating="4" class="star"></i>
|
| 394 |
<div class="app-star-annotation help-block">Works as expected</div>
|
| 395 |
<i data-rating="5" class="star"></i>
|
| 396 |
<div class="app-star-annotation help-block">Exceeds expectations</div>
|
| 397 |
</div>
|
| 398 |
<div class='app-star-annotation-container help-block'>You have not rated this app yet</div>
|
| 399 |
</li>
|
| 400 |
</ul>
|
| 401 |
</div>
|
| 402 |
</div>
|
| 403 |
<ul class="simple-list">
|
| 404 |
<li id="app-rate-text"><i class="icon-star"></i><span class="app-rate-text"></span></li>
|
| 405 |
|
| 406 |
<li t="yep"><i class="icon-download-alt" data-toggle="tooltip" data-placement="top" title="Downloads"></i>3184 downloads</li>
|
| 407 |
|
| 408 |
<li id='subscriptions'>
|
| 409 |
|
| 410 |
<a href="#"
|
| 411 |
data-toggle="toggle"
|
| 412 |
data-icon="icon-plus"
|
| 413 |
data-title="Subscribe"
|
| 414 |
data-value="subscribe"><i class="icon-plus"></i>Subscribe</a>
|
| 415 |
<a href="#" style="display:none"
|
| 416 |
data-toggle="toggle"
|
| 417 |
data-icon="icon-plus"
|
| 418 |
data-title="Unsubscribe"
|
| 419 |
data-value="unsubscribe"><i class="icon-minus"></i>Unsubscribe</a>
|
| 420 |
|
| 421 |
</li>
|
| 422 |
</ul>
|
| 423 |
|
| 424 |
</div>
|
| 425 |
<div class="well well-gray" style="margin-left:20px">
|
| 426 |
|
| 427 |
<h4 class="not-directory">Version 1.0.2</h4>
|
| 428 |
|
| 429 |
<ul class="simple-list">
|
| 430 |
|
| 431 |
<li>
|
| 432 |
<a href="/apps/#/category/it_operations_management">
|
| 433 |
<i class="icon-tag" data-toggle="tooltip" data-placement="top" title="Category"></i>IT Operations Management</a>
|
| 434 |
</li>
|
| 435 |
|
| 436 |
<li>
|
| 437 |
<a href="/apps/#/type/app">
|
| 438 |
<i class="icon-list-alt" data-toggle="tooltip" data-placement="top" title="Content Type"></i>App</a>
|
| 439 |
</li>
|
| 440 |
|
| 441 |
<li>
|
| 442 |
<a href='#'><i class="icon-chevron-right" data-toggle="tooltip" data-placement="top" title="Compatibility" style="margin-right:0"></i></a>
|
| 443 |
|
| 444 |
<a href="/apps/#/version/6.1">
|
| 445 |
6.1,
|
| 446 |
</a>
|
| 447 |
|
| 448 |
<a href="/apps/#/version/6.0">
|
| 449 |
6.0
|
| 450 |
</a>
|
| 451 |
|
| 452 |
</li>
|
| 453 |
<li>
|
| 454 |
<a href="/apps/#/">
|
| 455 |
<i class="icon-desktop" data-toggle="tooltip" data-placement="top" title="Platforms"></i>Platform Independent</a>
|
| 456 |
</li>
|
| 457 |
|
| 458 |
<li class="not-directory">
|
| 459 |
<a target="_blank" href="http://creativecommons.org/licenses/by/3.0/"><i class="icon-file" data-toggle="tooltip" data-placement="top" title="License"></i>Creative Commons BY 3.0</a>
|
| 460 |
</li>
|
| 461 |
|
| 462 |
|
| 463 |
</ul>
|
| 464 |
</div>
|
| 465 |
<div id="modal-flag" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
| 466 |
<div class="modal-header">
|
| 467 |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
| 468 |
<h4 id="myModalLabel"><span>Flag as Inappropriate</span></h4>
|
| 469 |
</div>
|
| 470 |
<div class="modal-body">
|
| 471 |
<div id="form">
|
| 472 |
<div class="dropdown">
|
| 473 |
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href=""><span>Spam or misleading</span><b class="caret"></b></a>
|
| 474 |
<ul class="dropdown-menu menu-special" role="menu">
|
| 475 |
<li class="selected" data-value="0"><a role="menuitem" href="#">Spam or misleading</a></li>
|
| 476 |
<li data-value="1"><a role="menuitem" href="#">Contains virus or spyware</a></li>
|
| 477 |
<li data-value="2"><a role="menuitem" href="#">Sexual content</a></li>
|
| 478 |
<li data-value="3"><a role="menuitem" href="#">Other</a></li>
|
| 479 |
</ul>
|
| 480 |
</div>
|
| 481 |
<div class="description">
|
| 482 |
<textarea class="span12" rows="3"></textarea>
|
| 483 |
<p class="help-block">Description required</p>
|
| 484 |
</div>
|
| 485 |
</div>
|
| 486 |
<div id="success">
|
| 487 |
<p>The admin has been notified. Thank you for reporting.</p>
|
| 488 |
</div>
|
| 489 |
<div id="error">
|
| 490 |
<p>An error occured. Please try again later.</p>
|
| 491 |
</div>
|
| 492 |
</div>
|
| 493 |
<div class="modal-footer">
|
| 494 |
<a class="btn btn-primary close" href="#">Close</a>
|
| 495 |
<a class="btn btn-primary submit" href="#"><i class="icon-ok"></i>Submit</a>
|
| 496 |
</div>
|
| 497 |
</div>
|
| 498 |
<div class="well well-gray" style="margin-left:20px">
|
| 499 |
<h4>Community Supported</h4>
|
| 500 |
<a href="http://answers.splunk.com/ask/?appid=1493" target="_blank" class="btn" style="margin-bottom:10px"><i class="icon-comment"></i>Ask a Question</a>
|
| 501 |
<ul class="simple-list">
|
| 502 |
<li><a href="http://answers.splunk.com/answers/app/1493"><i class="icon-comments"></i>Questions on SplunkAnswers</a></li>
|
| 503 |
|
| 504 |
<li><a
|
| 505 |
href="#modal-flag"
|
| 506 |
role="button"
|
| 507 |
data-toggle="modal"
|
| 508 |
class="auth-required"><i class="icon-flag"></i>Flag as inappropriate</a></li>
|
| 509 |
</ul>
|
| 510 |
</div>
|
| 511 |
<div class="well well-gray" style="margin-left:20px">
|
| 512 |
<h4>Built by <a href="http://answers.splunk.com/users/LukeMurphey">Luke Murphey</a></h4>
|
| 513 |
<ul class="simple-list">
|
| 514 |
<li><a
|
| 515 |
href="mailto:Luke.Murphey@gmail.com"
|
| 516 |
|
| 517 |
class="auth-required"><i class="icon-envelope-alt"></i>Contact</a></li>
|
| 518 |
</ul>
|
| 519 |
</div>
|
| 520 |
</div>
|
| 521 |
</div>
|
| 522 |
</div>
|
| 523 |
</div>
|
| 524 |
|
| 525 |
<div id="admin" style="display: block;">
|
| 526 |
<div class="container">
|
| 527 |
<ul class="nav-inverse simple-list clearfix">
|
| 528 |
<li class="nav-header" style="padding-left:0">Status: <span class="app-state">
|
| 529 |
Approved</span></li>
|
| 530 |
|
| 531 |
<li>
|
| 532 |
<a href="/app/1493/edit/"><i class="icon-pencil"></i>Edit</a>
|
| 533 |
</li>
|
| 534 |
</ul>
|
| 535 |
</div>
|
| 536 |
</div>
|
| 537 |
|
| 538 |
|
| 539 |
<footer class="row-fluid">
|
| 540 |
<div class="container">
|
| 541 |
<div class="pull-left">
|
| 542 |
<a href="http://www.splunk.com/view/site-map/SP-CAAADSP">Sitemap</a>
|
| 543 |
<a href="http://www.splunk.com/view/SP-CAAAAH7">Contact</a>
|
| 544 |
<a href="http://www.splunk.com/view/careers/SP-CAAAAGG">Careers</a>
|
| 545 |
<a href="http://www.splunk.com/view/SP-CAAAAAG">Privacy Policy</a>
|
| 546 |
<a href="http://www.splunk.com/view/SP-CAAAAAH">Terms of Use</a>
|
| 547 |
<a href="http://www.splunk.com/view/SP-CAAAGSX">Export Controls</a>
|
| 548 |
<br/>
|
| 549 |
<a href="http://creativecommons.org/licenses/by-nc-nd/2.5/">Community content licensed under Creative Commons</a>
|
| 550 |
<a href="/report/">Report a Problem</a>
|
| 551 |
<br/>
|
| 552 |
<span>Copyright © 2005-2014 Splunk Inc. All rights reserved.</span>
|
| 553 |
</div>
|
| 554 |
|
| 555 |
|
| 556 |
<div class="social pull-right">
|
| 557 |
<a data-toggle="tooltip" data-placement="top" title="Twitter" class="icon-twitter" href="http://twitter.com/splunk" target="_blank"></a>
|
| 558 |
<a data-toggle="tooltip" data-placement="top" title="Facebook" class="icon-facebook" href="http://www.facebook.com/splunk" target="_blank"></a>
|
| 559 |
<a data-toggle="tooltip" data-placement="top" title="LinkedIn" class="icon-linkedin" href="http://www.linkedin.com/company/splunk" target="_blank"></a>
|
| 560 |
<a data-toggle="tooltip" data-placement="top" title="Youtube" class="icon-youtube" href="http://www.youtube.com/splunkvideos" target="_blank"></a>
|
| 561 |
<a data-toggle="tooltip" data-placement="top" title="Blog RSS" class="icon-rss" href="http://blogs.splunk.com/feed/rss/" target="_blank"></a>
|
| 562 |
</div>
|
| 563 |
</div>
|
| 564 |
</footer>
|
| 565 |
</div>
|
| 566 |
|
| 567 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/lib/jquery/jquery-1.11.1.min.js"></script>
|
| 568 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/lib/jquery/jquery-ui-1.11.0.min.js"></script>
|
| 569 |
|
| 570 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/lib/angular-1.2.19/angular.min.js"></script>
|
| 571 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/lib/angular-1.2.19/angular-route.min.js"></script>
|
| 572 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/lib/angular-1.2.19/angular-resource.min.js"></script>
|
| 573 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/lib/angular-1.2.19/angular-animate.min.js"></script>
|
| 574 |
|
| 575 |
|
| 576 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/bin/lib.9f017b05ce.js"></script>
|
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
<script src="https://d38o4gzaohghws.cloudfront.net/static/bin/details.9f017b05ce.js"></script>
|
| 581 |
|
| 582 |
|
| 583 |
<script>var context={"username": "LukeMurphey", "appRateByUser": 5, "userid": 31397, "modal_license_attribute": {"release": "1.0.2", "license_url": "http://creativecommons.org/licenses/by/3.0/", "app_id": 1493, "license": "Creative Commons BY 3.0"}, "rootAddress": "https://apps.splunk.com/", "appid": 1493, "appReviewAverage": 4}</script>
|
| 584 |
</body>
|
| 585 |
</html>
|
| 586 |
''')
|
| 587 |
|
| 588 |
#matches = [e.get('id') for e in sel(h)]
|
| 589 |
|
| 590 |
|
| 591 |
for e in sel(h): |
| 592 |
print e.tag, ":", e.text, ",", e.attrib.get('t', "") |
| 593 |
|
| 594 |
#print matches
|