Questions tagged as 'python'

0
answers

Parse of two different pages

I have a problem and I can not solve it. I have 2 scripts that make the parse of two different pages. Is it possible for me to create a spider class, start these 2 different urls and create a parse for each url? I created 1 script for each class...
asked by 23.03.2018 / 01:03
1
answer

Django View Class retains values

A curiosity that has been with me for a long time in Django and I never managed to heal: Next. Let's say I have something like: from django.shortcuts import render from django.views import View from pagina.models import Config class Basi...
asked by 28.03.2018 / 12:29
1
answer

How to "reset" Python in Ubuntu 16.04 LTS

I have a problem with a Python library on my computer, I can not uninstall it through the pip. I would like to know if there is any way to remove the "force" library or restore Python to default setting. Below is the error when trying to unin...
asked by 27.03.2018 / 03:19
1
answer

How to click on a checkbox when another element obscure it?

I am writing a code to automate some processes in the SIAFI site, I could not make python click on a checkbox, other than importing the pynput package and using the mouse position with the coordinates (x, y): from pynput.mouse import Button, C...
asked by 20.03.2018 / 15:22
1
answer

Is there any way to create different tables in SQLITE3 through the same python function?

I'm creating a bot in python through the python-telegram-bot library, and it works through commands. I know that through cursor.execute () I can create a table via python, but the real question is: is there a way to create different tables every...
asked by 18.03.2018 / 14:28
1
answer

Display manytomany in list_display in django

I'm trying to display some cont'd items in manytomany in the list display in django, but it is returning an error, follow the codes: Models.py class Apenso(models.Model): usuario = models.ForeignKey(User, blank=True) processo = models.On...
asked by 19.03.2018 / 20:42
2
answers

Counter in a value of a dictionary

I am a beginner in programming and am doing an exercise in which I need to count the votes of certain numbers according to the number of the player's shirt. For example, if I type in program 23, 3 times, the number 23 will have 3 votes. I would...
asked by 26.03.2018 / 22:05
0
answers

Problems with openpyxl. Open Excel file with Python

I'm trying to read an Excel file but this error message appears. Warning (from warnings module): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/openpyxl/reader/worksheet.py", line 318 warn(msg) UserWa...
asked by 20.03.2018 / 05:54
2
answers

Export process information to a .txt - Python

Good morning! I have a problem exporting the information that my process is generating. Currently I copy everything that is in my print and paste it into a txt file, but I would like to take this manual process from my project. I wanted...
asked by 20.03.2018 / 15:03
0
answers

High-pass Filter in Python

I want to filter a signal with noises. I have a .txt file with two columns (time [in days], stream) and would like to filter them using High-pass filter in Python code. I would love to use two distinct cutoff intervals (40 days and 80 days)....
asked by 16.03.2018 / 17:14