Comments (5)
Also, note, I did try to implement this, but Go doesn't like me...
I tried to add a CMD param like so:
var dates bool
var withSubs bool
flag.BoolVar(&dates, "dates", false, "show date of fetch in the first column")
flag.BoolVar(&withSubs, "withSubs", true, "pull URLs for subdomains of the hosts provided as well")
and then pass it into the functions getWaybackURLs and getCommonCrawlURLs via this:
resp, err := fetch(domain, withSubs)
Once I modified the resulting functions to look like this:
func getWaybackURLs(domain string, withSubs bool) ([]wurl, error) {
if withSubs {
res, err := http.Get(
fmt.Sprintf("http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&collapse=urlkey", domain),
)
} else {
res, err := http.Get(
fmt.Sprintf("http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&collapse=urlkey", domain),
)
}
But Go didn't like that... I don't speak Go hahaha.
from waybackurls.
Hey, @Rhynorater! Good idea :)
I'll have a poke at it now
from waybackurls.
I've added a --no-subs
option in 41bb26a
The only real problem with it is that the searches still often include subdomains, so the actual behaviour doesn't quite line up with the expected behaviour.
I'll add some additional filtering I think
from waybackurls.
@Rhynorater I've added some output filtering so you only get results for the exact input domain if you specify the --no-subs
option in 58bbafe
Give it a try and let me know if you hit any problems :)
from waybackurls.
from waybackurls.
Related Issues (20)
- gg
- [issue] Urls appended together HOT 3
- Licence? HOT 1
- Flag provided but not defined
- Go get installing command no longer working HOT 4
- not working HOT 6
- how to block waybackurls jpg png files HOT 2
- go get command not working HOT 2
- NO output HOT 3
- Output cannot be placed in a file
- command not found HOT 3
- waybackurls not working HOT 3
- receiving following error, in virtual box HOT 1
- waybackurls.exe HOT 2
- Urls can't fetch HOT 1
- No output HOT 4
- Dates filtering capabilities
- No install process provided for Mac.
- i get this error message when trying to run the install command on kali linux (windows subsystem) HOT 1
- Unable to install waybackurls with go
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waybackurls.