utils

package
v0.0.0-...-ec09336 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DomainToOutputFolder

func DomainToOutputFolder(urlObject *url.URL) string

DomainToOutputFolder returns the name of the folder for a given domain; this folder will hold all the files crawled from this domain, and our system files. That allows to have multiple crawlers working in parallel, given they crawl different sites.

func NormalizeUrlObject

func NormalizeUrlObject(urlObject *url.URL) (*url.URL, error)

func UrlToFileStructure

func UrlToFileStructure(urlObject *url.URL) (path, filename string)

UrlToFileStructure converts URL path to a file path and name

func UrlToHost

func UrlToHost(urlObject *url.URL) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL