Skip to content

cryonayes/GoScraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

GoScraping

Web scraping tool made for bug hunters

This tool helps you to get data from HTML using CSS selectors.

Usage:

➜  GoScraping -h
-u,  --url         Fetch HTML from URL
-s,  --std         Read HTML from standard input
-f,  --file        Read HTML file from disk
-q,  --query       CSS selector to be used
-a,  --attr        Only print nodes with specified attribute
-av  --attr-val    Used with -a to get nodes with specified value of attribute
-v,  --verbose     Verbose mode. (Prints file name in file mode)

Installing

➜  go get github.com/cryonayes/GoScraping

Examples

➜  GoScraping -u "https://www.w3schools.com/howto/howto_css_example_website.asp" -q "#main > div.w3-content > div > div:nth-child(2) > a"

Combining with fff output.

➜  find . -type f -name "*\.body" | xargs -n1 -I{} GoScraping -f {} -q "#main > div.content > div > a"

Filtering by attributes

➜  GoScraping -u "https://www.w3schools.com/howto/tryhow_css_example_website.htm" -q "body > div.row > div.main > div" -a "class" -av "fakeimg"

About

Web scraping tool made for bug hunters

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages