Skip to content

Instantly share code, notes, and snippets.

@cloudjumper2000
Last active March 19, 2018 15:02
Show Gist options
  • Save cloudjumper2000/2f2bef395811b8f25cc3a9c8e3834117 to your computer and use it in GitHub Desktop.
Save cloudjumper2000/2f2bef395811b8f25cc3a9c8e3834117 to your computer and use it in GitHub Desktop.
Sample output for scrape
<ul class='products'>
<li class="widget">
<a class="product" href="/Item/39138113">
<div class="image">
<img class="lazy-load" src="http://example.com/39138113-thumb.jpg"
data-src="http://example.com/39138113-thumb.jpg" alt="" data-adaptive-background="1">
<ul class="badges">
</ul>
</div>
<span class="data-container">
<div class="product-data">
<div class="product-number"><span>Product #: </span>39138113</div>
<div class="title">
Item listing number 1
<div class="excerpt"></div>
</div>
<div class="product-price">
<div class="price">
$6.99 </div>
<div class="timer countdown product-countdown" data-countdown="3/9/2018 6:48:45 AM"></div>
<div class="timer countdown-classic product-countdown" data-countdown="3/9/2018 6:48:45 AM"></div>
<div class="buttons btn-group-vertical" role="group" aria-label="...">
<button class="btn btn-theme-primary">Place a Bid</button>
<!-- <button class="btn btn-theme-secondary">Buy It Now</button> -->
<button class="btn btn-default watch watchlist" data-url="/example.com/AddToWatchList" data-itemid="39138113">Watch</button>
</div>
</div>
</span>
<div class="hover-actions">
<button class="view" style="width:100%">
<i class="fa fa-search" aria-hidden="true"></i>
view
</button>
</div>
</a>
</li>
<li class="widget">
<a class="product" href="/Item/39102999">
<div class="image">
<img class="lazy-load" src="https://www.example.com/39102999/thumb.jpg" data-src="https://www.example.com/39102999/thumb.jpg" alt="" data-adaptive-background="1">
<ul class="badges">
</ul>
</div>
<span class="data-container">
<div class="product-data">
<div class="product-number"><span>Product #: </span>39102999</div>
<div class="title">
Item listing number 2
<div class="excerpt"></div>
</div>
<div class="product-price">
<div class="price">
$10.99 </div>
<div class="timer countdown product-countdown" data-countdown="3/9/2018 6:01:10 AM"></div>
<div class="timer countdown-classic product-countdown" data-countdown="3/9/2018 6:01:10 AM"></div>
<div class="buttons btn-group-vertical" role="group" aria-label="...">
<button class="btn btn-theme-primary">Place a Bid</button>
<!-- <button class="btn btn-theme-secondary">Buy It Now</button> -->
<button class="btn btn-default watch watchlist" data-url="/example.com/AddToWatchList" data-itemid="39102999">Watch</button>
</div>
</div>
</span>
<div class="hover-actions">
<button class="view" style="width:100%">
<i class="fa fa-search" aria-hidden="true"></i>
view
</button>
</div>
</a>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment