简体   繁体   中英

How can I create News Android application without having my own server?

I have tried to create a news app that display news from some website.
Some friends helped me to write some php so that I can call the php using http request and get the JSON from the response.
Then, I can parse the JSON and display the news correctly.
However, the server is not mine.
Actually, I don't want to have server communication using php.
I want to do it just on client side.
1) I know how to parse the html and get the result using python in local machine, is there any way to implement my python code in Android, and after running the python code, it will connect to the news website and display it correctly.
2) If not, what can I do because I do not want to host a server.

This is a fairly vague question however I will answer the one specific part:

is there any way to implement my python code in Android, and after running the python code

Yes, its called Scripting Layer 4 Android which supports many languages. Specifically I found python-for-android which allows you to run python on Android devices, which you could use for your application to pull and parse html from a news website.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM