Questions tagged as 'python'

1
answer

Smart Card reading certificate a3 with python

Is it possible, and how can I collect a3 smart card information to log in and authenticate? Is there a library
asked by 12.07.2017 / 19:42
1
answer

Determine the largest prime number after being given a value using while function [duplicate]

I have to create an exercise to find the largest prime number after being given a certain value using the while function, what is wrong with what I created below ?? def maior_primo(n): x=0 y=0 while y<=n: y=y+1...
asked by 07.07.2017 / 16:36
0
answers

Subprocess & call in Python (Security)

Developing a simple application, some code analysis tools gave me the following warning:    Consider possible security implications associated with call module. For this particular code snippet: from subprocess import call , and bel...
asked by 08.07.2017 / 15:46
1
answer

Python - how to merge multiple csv files

I have 4 folders, and each one of them is stuffed with csvs of 3 types (ap, peers, visits). I'm a beginner in python, but I wanted to create a python script that would merge the files that are peer, so I got a single file with the lines of al...
asked by 10.07.2017 / 18:48
1
answer

Cycle fordá results Nan! How to get real values?

One of the parts of my script is to determine the area of a graph by the trapezoid approximation. Within the class I created the following function that handles the self.df, which is a DataFrame def areas(self): area = 0. x = list(self...
asked by 23.07.2017 / 11:29
0
answers

conversion from Unittest Python2 to Python3

I'm having some free time and I'm upgrading to Python3. I came across a problem in running the unittest, and I believe you can help me. Error: File "/home/brito/projetos/00-incolumepy/tests/generators_test.py", line 28 self.assert_([...
asked by 10.07.2017 / 14:09
1
answer

Is it possible to generate log files from a Python file that has been made executable? [closed]

Hello, I created the Python code executable below with the module pyinstaller . import urllib import urllib2 import webbrowser import re import popular4 import logging from datetime import datetime agora = datetime.now() logging.basicCon...
asked by 26.06.2017 / 01:03
1
answer

Fill in JS Form - Web Scraping in Python - Selenium and PhantomPS

Friends. I am developing a code to access the Anbima site, fill in the fields and download the txt that is generated. I've been looking for a solution to this problem for a few days now. So far, I've found that the information session is...
asked by 31.08.2017 / 15:48
1
answer

Python: select checkbox in an orderly manner selenium web scraping

I have a list containing hundreds of data in the format [ '5008489', 'Órgão: MPF', 'PROCEDIMENTO DO JUIZADO ESPECIAL', 'CPF', <selenium.webdriver.remote.webelement.WebElement (session="8834847081a4be257906cce85807f88...
asked by 31.08.2017 / 21:18
1
answer

Open files that will be shared between various functions, inside or outside the functions?

Next, I'm doing a program that I'm going to split between the function module and the interface, and I need to use files in that project (and I can not use classes), so I need to use those files between several functions, they will write in them...
asked by 25.06.2017 / 17:46