import clamd
import requests

clamd_socket = clamd.ClamdUnixSocket()


def scan_html(url):
    """
    todo: should crawl the page, using lxml, and add all those pages to the directory
    then scan each page
    """
    return clamd_socket.scan_stream(requests.get(url, timeout=10.0).content)

if __name__ == "__main__":
    print scan_html("https://secure.eicar.org/eicar.com")

@@ -139,54 +139,8 @@
 lxml
-, and add all those pages to the directory%0A   
  the
@@ -155,16 +155,26 @@
 ach page
+'s content
 %0A    %22%22%22

update todo on clam scanner