<commit_before>module LCBO
  class ProductPage

    include CrawlKit::Page

    # uri 'http://lcbo.com/lcbo-ear/lcbo/product/details.do?language=EN&itemNumber={id}'
    uri 'http://www.lcbo.ca/lcbo/product/name/{id}'

    # on :before_parse, :verify_response_not_blank
    # on :after_parse,  :verify_product_details_form
    # on :after_parse,  :verify_product_name
    # on :after_parse,  :verify_third_info_cell

    emits :id do
      query_params[:id].to_i
    end

    emits :name do
      CrawlKit::TitleCaseHelper[doc.css('.details h1')[0].content]
    end

    emits :tags do<commit_msg>update url used for parsing lcbo data<commit_after>module LCBO
  class ProductPage

    include CrawlKit::Page

    # uri 'http://lcbo.com/lcbo-ear/lcbo/product/details.do?language=EN&itemNumber={id}'
    uri 'http://www.lcbo.com/lcbo/product/name/{id}'

    # on :before_parse, :verify_response_not_blank
    # on :after_parse,  :verify_product_details_form
    # on :after_parse,  :verify_product_name
    # on :after_parse,  :verify_third_info_cell

    emits :id do
      query_params[:id].to_i
    end

    emits :name do
      CrawlKit::TitleCaseHelper[doc.css('.details h1')[0].content]
    end

    emits :tags do
{'fraction_non_alphanumeric': 0.1199671322925226, 'fraction_numerical': 0.003286770747740345, 'mean_word_length': 3.4944649446494465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '946247', 'n_tokens_mistral': 446, 'n_tokens_neox': 430, 'n_words': 77}