Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 627 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 627 Bytes

PromiseExtractor

Build Status

A push promise extractor for HTML files.

Usage

promise_for("""
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="example.css">
  </head>
  <body>
    <div>
      <p></p> <a></a> <p></p>
      <img src="http://localhost/example.jpg">
    </div>
    <div>
       <span></span>
    </div>
    <script src="example.js"></script>
   </body>
</html>
""", "http://localhost")

; => ["example.css","http://localhost/example.jpg","example.js"]