How do i run my Python Webscraping code with Kotlin

Viewed 90

Im working on a tool that downloads files from websites. I wrote a Python code for this now how do i execute this code with Kotlin? Are there any easy ways?

(I have to do it in Kotlin but I don't know how to download something from a website so I use python)

Thanks

2 Answers

Python -> Kotlin isn't a straightforward conversion, especially with HTTP libraries. Try Ktor, a library built for web requests in Kotlin.

Related