Questions tagged as 'python'

1
answer

Doubt how to shave data like Python using BeautifulSoup Table

I'm a beginner and I'm trying to get a table from the transparency portal site, but I'm not able to get the tag with no data at all. When I open the developer tool I visualize the data that I want the states and the transfer value to be, but w...
asked by 10.11.2018 / 10:18
1
answer

How to reverse the association of one file to open with another, in Pycharm

I got a song I copied and pasted on pycharm. The song was not recognized, appearing the option Associate with file type, when I clicked I linked the program to youtrack query, how do I revert as I was before?     
asked by 22.10.2018 / 23:19
1
answer

Color detection and telling which color is appearing

How could it be done so that when the predominant color in the video appears a message saying which is the predominant color? Example: an object appears in the red video capture, so a message should appear saying that the predominant color is...
asked by 17.10.2018 / 17:09
1
answer

How to create python module and make it available to any application

I would like my program in python to be put into the system in such a way that with a simple import it can be executed, for example: import meucodigo meucodigo.main() My code contains several files (own modules) and all are called th...
asked by 17.10.2018 / 03:18
1
answer

How to "clean" a csv file with Python?

Hello! I am extremely new to programming, so I apologize if I can not explain what I am trying to do or if my code is very wrong. I have a recurring task in my job which is to open a list of restaurants in Ifood, collect the prices of each of th...
asked by 18.10.2018 / 15:32
1
answer

^ A (CTRL + A) on the telnet client

I'm doing a telnet client in python and I need to send a code to another machine, but the code needs to put a Ctrl + A (CODE) ^A (code) does not work, heeelp me serv = raw_input("[+] SERVER: ") port = raw_input("[+] PORT: ") tn = telnet...
asked by 17.11.2018 / 06:32
1
answer

Search for a value in a particular column in a .txt file

I am trying to search for a value in a certain position in the column of a text file and generating another file with these lines, but without success Follow the code: arquivo = open('arquivo.txt', 'r') arquivo2 = open('arquivo2.txt', 'w')...
asked by 16.11.2018 / 01:48
1
answer

Python function error ("is not defined")

This was the simplest code I found in a python-chained list, I just could not figure out why it's not working class NodoLista: #Esta classe representa um nodo de uma lista encadeada. def __init__(self, dado=0, proximo_nodo=None):...
asked by 29.11.2018 / 04:02
1
answer

AttributeError: 'Directors' object has no attribute

I'm trying to get a value from a very simple class, but I have a problem that I can not solve. Here are the codes below: Main class: from directores.directores import Directores # A classe Directores encontra-se em directores/directores.p...
asked by 26.09.2018 / 05:39
1
answer

Doubts Python libraries [closed]

Good afternoon! I'm new to development using the Python language, I'd like some tips from good libraries to be studying and especially one to "manipulate sites" (currently I only know Selenium WebDriver, but I'd like to know others), I know is...
asked by 27.09.2018 / 17:53