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

Overall rating numbers and Avg Rating #9

Closed
kevincobain2000 opened this issue Jun 10, 2022 · 0 comments
Closed

Overall rating numbers and Avg Rating #9

kevincobain2000 opened this issue Jun 10, 2022 · 0 comments

Comments

@kevincobain2000
Copy link

kevincobain2000 commented Jun 10, 2022

Hi,
Great library and thank you.
I was looking for a Google Scraper and found one.

Is there any way to extract the overall number and the average as well?
In other words, (from the screenshot below), it'd be nice to extract the 4.3 overall ratings and the distribution numbers, for example for rating 3 the following screenshot presents on hover with 1,137 reviews.

I did try and get all the reviews below

	r := reviews.New("xxx.application.ignore.it", reviews.Options{
		Number:   1000000,
		Language: "ja",
	})

	err := r.Run()
	if err != nil {
		panic(err)
	}

	for _, review := range r.Results {
		// fmt.Println(review.Reviewer, review.Timestamp, review.Score, review.Text)
		fmt.Println(review.Score)
	}
╰─$ go run main.go |grep 3|wc -l
     633

This one doesn't give exact number which is ok since it doesn't extract 100% of the reviews.

Screen Shot 2022-06-10 at 21 06 28

kevincobain2000 added a commit to kevincobain2000/go-app-reviews-scraper that referenced this issue Jun 10, 2022
kevincobain2000 added a commit to kevincobain2000/go-app-reviews-scraper that referenced this issue Jun 11, 2022
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

1 participant