linkedin

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package linkedin fetches LinkedIn user profile data. NOTE: LinkedIn authentication is currently broken due to their anti-scraping measures. This package returns minimal profiles with just the URL and username for manual verification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired() bool

AuthRequired returns true because LinkedIn requires authentication. NOTE: Auth is currently broken, but we keep this true to indicate the limitation.

func Match

func Match(urlStr string) bool

Match returns true if the URL is a LinkedIn profile URL.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client handles LinkedIn requests.

func New

func New(_ context.Context, opts ...Option) (*Client, error)

New creates a LinkedIn client. NOTE: LinkedIn authentication is currently broken. The client will return minimal profiles.

func (*Client) EnableDebug

func (*Client) EnableDebug()

EnableDebug enables debug logging (currently a no-op).

func (*Client) Fetch

func (c *Client) Fetch(_ context.Context, urlStr string) (*profile.Profile, error)

Fetch retrieves a LinkedIn profile. NOTE: LinkedIn authentication is currently broken. This returns a minimal profile with just the URL and username. The link is preserved for manual verification.

type Option

type Option func(*config)

Option configures a Client.

func WithBrowserCookies

func WithBrowserCookies() Option

WithBrowserCookies enables reading cookies from browser stores (currently unused - auth is broken).

func WithCookies

func WithCookies(cookies map[string]string) Option

WithCookies sets explicit cookie values (currently unused - auth is broken).

func WithHTTPCache

func WithHTTPCache(httpCache cache.HTTPCache) Option

WithHTTPCache sets the HTTP cache (currently unused - auth is broken).

func WithLogger

func WithLogger(logger *slog.Logger) Option

WithLogger sets a custom logger.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL