NewLocalScanner (local_scanner.go)

phoneinfoga · scraping

Scans local filesystem for phone numbers via google-libphonenumber, extracting and formatting numbers for OSINT workflows.

package remote

import (
	"github.com/sundowndev/phoneinfoga/v2/lib/number"
)

const Local = "local"

type localScanner struct{}

type LocalScannerResponse struct {
	RawLocal      string `json:"raw_local,omitempty" console:"Raw local,omitempty"`
	Local         string `json:"local,omitempty" console:"Local,omitempty"`
	E164          string `json:"e164,omitempty" console:"E164,omitempty"`
	International string `json:"international,omitempty" console:"International,omitempty"`
	CountryCode   int32  `json:"country_code,omitempty" console:"Country code,omitempty"`
	Country       string `json:"country,omitempty" console:"Country,omitempty"`
	Carrier       string `json:"carrier,omitempty" console:"Carrier,omitempty"`
}

func NewLocalScanner() Scanner {
	return &localScanner{}
}

func (s *localSca

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key