Posts by Samuel Haidu • 181 points
9 posts
-
1
votes1
answer408
viewsA: Using kivy Urlrequest
I think this app explains well how Kivy’s Urlrequest works: from kivy.network.urlrequest import UrlRequest from kivy.app import App from kivy.uix.button import Button class reqApp(App): def…
-
2
votes1
answer5950
viewsA: bytes-like Object is required, not 'str'
Your problem is quite simple. If you check the urlopen returns an object of type "bytes" convert "sourceCode" to string first: sourceCode = str(sourceCode) pl = sourceCode.split('Preço/Livro…
pythonanswered Samuel Haidu 181 -
0
votes1
answer94
viewsA: How do I register several records
What you want can be easily solved with AJAX. Create a script and put a function like this: function delete_comment(comment_id) { //coloque sua url que leva a view de inserir contactos var…
-
1
votes1
answer304
viewsA: Web Application for Script Monitoring
You can use the Django, it is all very simple and easy to make a web application. With Django you create your web interface to monitor and activate the script. Django already has a built-in…
-
0
votes1
answer32
viewsQ: Verificaciones periodicas Django
How could I create a loop, thread or anything that my webapp periodically checks every 5 minutes the database and deletes entries that are "expired". I did some research, but I couldn’t find…
-
1
votes2
answers49
viewsA: How to receive more than one user command at once?
The more forms simple to do this are the following: nasc is a string, strings are lists of characters. So you can split it into day, month and year. nasc= input('INFORME SUA DATA DE NASCIMENTO: ')…
-
1
votes1
answer858
viewsA: Apis tips for checking bitcoin quotes
There is the Bitcoin Market API, it is extremely simple and lightweight works with JSON. It is public does not need authentication for prices https://www.mercadobitcoin.net/api/BTC/ticker/ Returns…
-
1
votes1
answer1131
viewsA: How to turn a python file into an executable?
You can use cython as well. Is there any performance gain. cython main_script.py --embed But I think the simplest solution is to use Pyinstaller, it works on Windows, Linux and Macos. It creates an…
-
1
votes1
answer2070
viewsA: Program closing immediately after opening(Post-compiled)
The Problem is here: janela.title('Convertor da Cifra de César') You need to put the encoding at the beginning of the code. So python can recognize the Unicode characters. #encoding: utf-8 import…