Skip to content

copypasteearth/KotlinWikipediaSearch

Repository files navigation

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

About

Quick Wikipedia Search library i made

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages