Skip to content

golovers/xtract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xtract

xtract text from html

Usage:

// Extract all text from the page
xtract.Page("https://github.com/golovers")

// Extract the first 20 words from the page
xtract.PageLim("https://github.com/golovers", 20)

// Extract all text from html value
xtract.Value("<div>Text</div>")

// Extract the first word in the html value
xtract.ValueLim("<div>Text and another text</div>", 1)

// Override trim function if needed
xtract.SetTrimFunc(f TrimFunc)

Releases

No releases published

Packages

No packages published

Languages