<commit_before>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")<commit_msg>update todo on clam scanner<commit_after>import clamd
import requests

clamd_socket = clamd.ClamdUnixSocket()


def scan_html(url):
    """
    todo: should crawl the page, using lxml then scan each page's content
    """
    return clamd_socket.scan_stream(requests.get(url, timeout=10.0).content)

if __name__ == "__main__":
    print scan_html("https://secure.eicar.org/eicar.com")
{'fraction_non_alphanumeric': 0.11392405063291139, 'fraction_numerical': 0.007594936708860759, 'mean_word_length': 4.344594594594595, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5879532', 'n_tokens_mistral': 269, 'n_tokens_neox': 259, 'n_words': 66}