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

phone number parsing vs a-parser

Discussion in 'A-Parser Support Forum' started by Higs, Aug 31, 2021.

  1. Higs

    Higs A-Parser Pro License
    A-Parser Pro

    Joined:
    Aug 5, 2020
    Messages:
    4
    Likes Received:
    0
    Phone number parsing is possible?
    Please tell me where I can find the documentation about this case

    Best Regards
     
  2. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    4,377
    Likes Received:
    2,107
    Unlike e-mail's (for which there is even a built-in parser), phones are much more difficult to parse, because for them there is no universally accepted recording format and, accordingly, it will not be possible to write a regular expression that universally collects phones.
    Usually, to collect phones, parsers are written for a specific resource (site). Or, if you need phones of only one country, you can bind to the phone code.
    In general, the principle of operation is the same as for collecting any other data: you get the source code of the page (for example, via Net::HTTP Net::HTTP) and collect numbers from it using a regular expression.
     
    Higs likes this.

Share This Page