<commit_before>#!/usr/bin/env python3
import lxlcrawler

i = 0
for item in lxlcrawler.crawl("https://id.kb.se/find?q=*&limit=200&inScheme.@id=https://id.kb.se/term/sao"):
    i += 1
    print("[%s]" % i, item['@id'], item.get('prefLabel'))
<commit_msg>Update crawler example<commit_after>#!/usr/bin/env python3
import lxlcrawler

start_url = "https://id.kb.se/find?q=*&limit=200&inScheme.@id=https://id.kb.se/term/sao"

for i, item in enumerate(lxlcrawler.crawl(start_url)):
    print("[{}] {}, {}".format(i + 1, item['@id'], item.get('prefLabel')))

{'fraction_non_alphanumeric': 0.23272727272727273, 'fraction_numerical': 0.02, 'mean_word_length': 5.054945054945055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4919706', 'n_tokens_mistral': 243, 'n_tokens_neox': 230, 'n_words': 34}