Karn / Khttp Android
Licence: mpl-2.0
Kotlin HTTP request library for Android, adapted from @jkcclemens/khttp.
Stars: ✭ 18
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Khttp Android
Requests Respectful
Minimalist Requests wrapper to work within rate limits of any amount of services simultaneously. Parallel processing friendly.
Stars: ✭ 417 (+2216.67%)
Mutual labels: requests
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+3650%)
Mutual labels: requests
Khttp
Kotlin HTTP requests library. Similar to Python requests.
Stars: ✭ 410 (+2177.78%)
Mutual labels: requests
Wikipedia Frequency Lookup
Simple script written in Python to get the 20 words with highest frequency in an English Wikipedia article
Stars: ✭ 16 (-11.11%)
Mutual labels: requests
Pycookiecheat
Borrow cookies from your browser's authenticated session for use in Python scripts.
Stars: ✭ 465 (+2483.33%)
Mutual labels: requests
Price Monitor
京东商品价格监控:监控用户设定商品价格,降价邮件/微信提醒。技术:Python爬虫/IP代理池/JS接口爬取/Selenium页面爬取
Stars: ✭ 634 (+3422.22%)
Mutual labels: requests
Easy Scraping Tutorial
Simple but useful Python web scraping tutorial code.
Stars: ✭ 583 (+3138.89%)
Mutual labels: requests
Django Request
django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online etc.
Stars: ✭ 419 (+2227.78%)
Mutual labels: requests
Requests3
Requests 3.0, for Humans and Machines, alike. 🤖
Stars: ✭ 813 (+4416.67%)
Mutual labels: requests
Drissionpage
A module that integrates selenium and requests session, encapsulates common page operations, can achieve seamless switching between the two modes.
Stars: ✭ 409 (+2172.22%)
Mutual labels: requests
Curl
Custom PHP curl library for the Laravel 5 framework - developed by Ixudra
Stars: ✭ 537 (+2883.33%)
Mutual labels: requests
Microservices Connector
Inter-Service communication framework, support for microservice architecture and distributed system
Stars: ✭ 17 (-5.56%)
Mutual labels: requests
Course Crawler
🎓 中国大学MOOC、学堂在线、网易云课堂、好大学在线、爱课程 MOOC 课程下载。
Stars: ✭ 611 (+3294.44%)
Mutual labels: requests
kHttp Android
Lightweight HTTP requests library for Android.
kHttp Android is similar to Python's requests
module. This library has been adapted from kHttp by jkcclemens which is no longer maintained.
GETTING STARTED
kHttp Android (pre-)releases are available via JitPack. It is recommended that a specific release version is selected when using the library in production as there may be breaking changes at anytime.
Tip: Test out the canary channel to try out features by using the latest develop snapshot;
develop-SNAPSHOT
.
// Project level build.gradle
// ...
repositories {
maven { url 'https://jitpack.io' }
}
// ...
// Module level build.gradle
dependencies {
// Replace version with release version, e.g. 1.0.0-alpha, -SNAPSHOT
implementation "io.karn:khttp-android:[VERSION]"
}
USAGE
The most basic case is as follows:
// Get your IP synchronously
val ipAddress = get(url = "http://httpbin.org/ip").jsonObject.getString("origin")
// Get your IP asynchronously
get(url = "http://httpbin.org/ip")
.subscribe { response : Response ->
val ipAddress = response.jsonObject.getString("origin")
}
KNOWN ISSUES
- There is an issue with parsing a list of maps into a JSONObject — a test case
doesJSONObjectBugExist
documents the issue within theKHttpPostTest.kt
file. This is platform related and cannot be fixed through this library. The current workaround is to build the JSONObject manually.
CONTRIBUTING
There are many ways to contribute, you can
- submit bugs,
- help track issues,
- review code changes.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].