We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
com.arthurivanets.googleplayscraper.util.ScraperError$GenericError:
The text was updated successfully, but these errors were encountered:
I was getting this same error. Try running the code inside a coroutine. Here's an example:
class MyScraper(private val scraper: GooglePlayScraper) { suspend fun getAppReviews() { withContext(Dispatchers.IO) { val params = GetAppReviewsParams( appId = "com.machado001.words", language = "PT", country = "BR", limit = 150 ) val response = scraper.getAppReviews(params).execute() if (response.isSuccess) { val reviews = response.requireResult() println(reviews) } else { val error = response.requireError() println(error) } } } }
import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.lifecycleScope import com.arthurivanets.googleplayscraper.GooglePlayScraper import kotlinx.coroutines.launch class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val scraper = GooglePlayScraper() lifecycleScope.launch { val scraperInstance = MyScraper(scraper) scraperInstance.getAppReviews() } }
Sorry, something went wrong.
No branches or pull requests
com.arthurivanets.googleplayscraper.util.ScraperError$GenericError:
The text was updated successfully, but these errors were encountered: