Skip to content
/ gojib Public

A simple package to scrape and get price data from Iranjib website (https://www.iranjib.ir)

License

Notifications You must be signed in to change notification settings

mamal72/gojib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Go Report Card GoDoc license

gojib

A simple package to scrape and get price data from Iranjib website.

Installation

go get github.com/mamal72/gojib
# or use dep, vgo, glide or anything else

Usage

package main

import (
	"log"

	"github.com/mamal72/gojib"
)

func main() {
	iranianCarsPrices, _ := gojib.GetIranianCarsPrices() // returns []CarPrice, error
	log.Println("Iranian Cars:")
	for _, car := range iranianCarsPrices {
		log.Printf("%+v", car)
	}

	foreignCarsPrices, _ := gojib.GetForeignCarsPrices() // returns []CarPrice, error
	log.Println("Foreign Cars:")
	for _, car := range foreignCarsPrices {
		log.Printf("%+v", car)
	}
}

Ideas || Issues

Just create an issue and describe it. I'll check it ASAP!

Contribution

You can fork the repository, improve or fix some part of it and then send the pull requests back (with some tests ofc) if you want to see them here. I really appreciate that. ❤️

About

A simple package to scrape and get price data from Iranjib website (https://www.iranjib.ir)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages