https://kotlinlang.org logo
Title
a

Andreas Du Rietz

08/14/2019, 7:40 AM
What HTTP lib would you suggest for screenscraping (saving session cookies etc)? I’m looking for something like “requests” for python and scala. Ease of use would be the biggest factor
c

christophsturm

08/14/2019, 7:49 AM
maybe #ktor?
m

Marc Dietrichstein

08/14/2019, 7:56 AM
You could use a java lib like jsoup (https://jsoup.org/) or jaunt (https://jaunt-api.com/)
a

Andreas Du Rietz

08/14/2019, 8:05 AM
Thanks! Jaunt looks interesting. ktor in combination with jsoup could also work
a

Al Warren

08/14/2019, 10:57 PM
I used JSoup to write an app for accessing DSL modem values. Worked well but it's a pain to parse the html. Probably going to be the same with any lib.
z

Zachary Grafton

08/15/2019, 12:15 PM
Selenium with the chromedriver works pretty well. I've had good luck using Kotlin with it as well.