1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Join our Telegram chat: https://t.me/a_parser_en
    Dismiss Notice

Statistics of the parsing results

Discussion in 'Share Experience' started by Support, Mar 8, 2016.

  1. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    4,377
    Likes Received:
    2,107
    [​IMG]
    Code:
    eyJwcmVzZXQiOiJTdGF0IiwidmFsdWUiOnsicHJlc2V0IjoiU3RhdCIsInBhcnNl
    cnMiOltbIlNFOjpHb29nbGUiLCJkZWZhdWx0Il1dLCJyZXN1bHRzRm9ybWF0Ijoi
    JHAxLnByZXNldFxuWyUtIEZPUkVBQ0ggcDEuc2VycDtcblx0ZG9tYWluID0gbGlu
    ay5tYXRjaCgnKCg/Omh0fGYpdHBzPzpcXC9cXC8uKz8pKD86XFwvfCQpJywgMSku
    MDtcblx0c3RhdERvbWFpbi4kZG9tYWluID0gc3RhdERvbWFpbi4kZG9tYWluICsg
    MTtcbkVORDtcbklGIHAxLmluZm8uc3VjY2VzcyA9PSAwO1xuXHRmYWlsZWQucHVz
    aChxdWVyeSk7XG5FTkQgJV0iLCJyZXN1bHRzU2F2ZVRvIjoiZmlsZSIsInJlc3Vs
    dHNGaWxlTmFtZSI6IiRkYXRlZmlsZS5mb3JtYXQoKS50eHQiLCJhZGRpdGlvbmFs
    Rm9ybWF0cyI6W10sInJlc3VsdHNVbmlxdWUiOiJubyIsInF1ZXJ5Rm9ybWF0Ijpb
    IiRxdWVyeSJdLCJ1bmlxdWVRdWVyaWVzIjpmYWxzZSwic2F2ZUZhaWxlZFF1ZXJp
    ZXMiOmZhbHNlLCJpdGVyYXRvck9wdGlvbnMiOnsib25BbGxMZXZlbHMiOmZhbHNl
    LCJxdWVyeUJ1aWxkZXJzQWZ0ZXJJdGVyYXRvciI6ZmFsc2UsInF1ZXJ5QnVpbGRl
    cnNPbkFsbExldmVscyI6ZmFsc2V9LCJyZXN1bHRzT3B0aW9ucyI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XMiOltdfX0=
    
    • For working this preset required version of A-Parser is not lower than 1.1.336.
    • In this preset for example used a parser SE::Google SE::Google.
    • Besides statistics outputs the standard result, it can be changed as usual.
    • To the general format of the result is added the template, which counts the desired statistics:
      [​IMG]
    • Domains are extracted in template by a regular expression (it is necessary to calculate the count of links for each domain).
    • In the Prepend text variables are declared:
      [​IMG]
    • In the Append text statistics are outputs:
      [​IMG]
    That is written in the Prepend and Append texts, output at the beginning and end of the file (which is equivalent to the beginning and end of parsing). Thanks to common space variables, it is possible to organize a one-time output of statistics or other data with support Template Toolkit templates.

    An example of output statistics:
     

Share This Page