func NewScraper(url string) (*Entity, error) {
	entity := new(Entity)

	// Return existing entity if it exists, otherwise create a
	// new one.
	err := checkExistingEntity(url, entity)
	if err != nil {
		if err = createNewEntity(url, entity); err != nil {
			log.Panicln("Error creating new entity: ", err)
		}
	}

	// Create a new entity.

	return entity, err
}
// Start the scraping process.
Start the scraping process.
// Start the scraping process .
func NewScraper(url string) (*Entity, error) {
	entity := new(Entity)
	err := checkExistingEntity(url, entity)
	if err != nil {
		if err = createNewEntity(url, entity); err != nil {
			log.Panicln("Error creating new entity: ", err)
		}
	}
	return entity, err
}
func NewScraper ( url string ) ( * Entity , error ) { entity := new ( Entity ) err := checkExistingEntity ( url , entity ) if err != nil { if err = createNewEntity ( url , entity ) ; err != nil { log . Panicln ( " " , err ) } } return entity , err }
Start the scraping process.
Start the scraping process .
// Return existing entity if it exists, otherwise create a // new one. // Create a new entity.