https://github.com/mamal72/gojib
A simple package to scrape and get price data from Iranjib website (https://www.iranjib.ir)
https://github.com/mamal72/gojib
go golang iran price scraper
Last synced: 7 months ago
JSON representation
A simple package to scrape and get price data from Iranjib website (https://www.iranjib.ir)
- Host: GitHub
- URL: https://github.com/mamal72/gojib
- Owner: mamal72
- License: mit
- Created: 2018-09-24T13:10:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-24T14:34:34.000Z (about 7 years ago)
- Last Synced: 2023-08-06T00:35:01.278Z (about 2 years ago)
- Topics: go, golang, iran, price, scraper
- Language: Go
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/mamal72/gojib)
[](https://goreportcard.com/report/github.com/mamal72/gojib)
[](https://godoc.org/github.com/mamal72/gojib)
[](https://github.com/mamal72/gojib/blob/master/LICENSE)
# gojib
A simple package to scrape and get price data from [Iranjib](https://www.iranjib.ir) website.
## Installation
```bash
go get github.com/mamal72/gojib
# or use dep, vgo, glide or anything else
```
## Usage
```go
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. ❤️