X
X
Xander0172016-08-19 12:12:40
Python
Xander017, 2016-08-19 12:12:40

Widget in Android in Python?

Good afternoon!
I want to write a parser for a site, for example with exchange rates. (Which has already been done in principle).
The result of the parser's work is written to the database. DB on sqllite3.
Next, I want to make a widget for Android displaying the result of parsing and push notifications.
Experience in programming is minimal, the first project, do not kick much.)
There were a couple of questions.
1. Is it real? What tools to learn to make this a reality?
2. Do I correctly imagine that the parsing code should be executed on the server side and write the result to the database, and the last information from the database is only transmitted to the client?
3. How to create a table in the database once? Now, when the call is first executed, it is created normally. But at the second - an error "the table already exists".
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Neonoviiwolf, 2016-08-19
@Xander017

Yes, it’s quite realistic, the android SDK, maybe a python server is better, but write client-side in java, look at DevColibri courses on android, they will give you a set of information for this.
On good, the server should be engaged in data collection, because any cant / refinement - to edit in one place, and not on the side of the client application.
It’s even possible that you don’t need a database on the server (unless, of course, you confine yourself to one purely parsing), you can parse information at the request of the client and give it to him immediately in real time (it’s worth working on the fact that if clients ask for the same thing, then parse one once and distribute the same to everyone).
about the table, you need to check if it exists, if it exists, then connect, if not, then create - it's logical, isn't it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question