Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exclude option (no new dependency added) #572

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joananespina
Copy link

Description

Main reason why I added this was because I was generating a static build for a simple site, but for some reason it crawls a url with a different domain (localhost with different port). I would try and investigate the localhost issue, but having an exclude option will cover future problems as well.

  • Adding some simple logic to exclude specific URLs from crawl queue.
  • Did not include exclude in the defaultOptions (not sure how to properly update the snapshot 馃し).
  • Unit test

Feel free to close, but so far tests are good. I will use the forked version for my use case right now, but having it in the main repo would be nicer.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant