![](https://camo.githubusercontent.com/b15420f1cf1dece7fb540309d920f553edb7de9bf3edd4e22a0ac7a74070eec1/68747470733a2f2f6a69747061636b2e696f2f762f636f7079706173746565617274682f4b6f746c696e57696b6970656469615365617263682e737667)
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.copypasteearth:KotlinWikipediaSearch:1.0.0'
}
GlobalScope.launch{
withContext(Dispatchers.IO){
val kotlinWiki = KotlinWiki()
var search = kotlinWiki.searchResponse("hello world");
for(page in search.query?.pages!!){
val pageData = page.title?.let { kotlinWiki.getPage(it) }
if (pageData != null) {
Log.d("page", kotlinWiki.getSimplyParsedWikiText())
GlobalScope.launch(Dispatchers.Main){
textView.append(kotlinWiki.getSimplyParsedWikiText())
}
}
}
}
}
donate to buy this developer a cup of coffee
Donate