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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] filter non-html page from collector #7

Open
ghost opened this issue Jun 1, 2020 · 0 comments
Open

[Suggestion] filter non-html page from collector #7

ghost opened this issue Jun 1, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 1, 2020

Hi,

Hope you are all well !

It would be interesting to exclude non-html page from indexing content into elasticsearch, or to create a mime/type detector to detect images or pdf documents and create dedicated sub-processing for the binary types.

For now, I just added:

		if title == "" {
			spider.Logger.Error(errors.New("not an html page"))
			return
		}

Cheers,
X

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

No branches or pull requests

0 participants