Questions tagged as 'python'

1
answer

ElementNotVisibleException Selenium

I'm trying to login to www.pactpub.com using the following idea def setUp(self): self.driver = webdriver.Chrome(executable_path='C:\_workspace\projects\Packtpub\chromedriver') self.driver.get("https://www.packtpub.com") time.sl...
asked by 29.11.2016 / 14:08
2
answers

Submit process to the server and release the user

I'm having a problem with an application that uses 3G and is slow to keep the user waiting. Does anyone know any library that I can send information to the server and release the user? The information is a batch with 100 sets of numbers th...
asked by 11.10.2016 / 04:56
1
answer

Condition Arrays python

My Code: m1 = [[1, 2, 3], [4, 5, 6]] m2 = [[2, 3, 4], [5, 6, 7]] def soma_matrizes(m1, m2): matriz_soma = [] linhas = len(m1) colunas = len(m1[0]) for i in range(linhas): matriz_soma.append([])...
asked by 24.02.2017 / 20:16
1
answer

IOError: [Errno 24] Too many open files

When using the python generator video.mp4 2 150 80 10 thumbnails.jpg I have the following return Extracting 734 frames [####################################] 100% Frames extracted. Traceback (most recent call last): File "generator",...
asked by 04.01.2017 / 01:06
1
answer

Create a new function with scrapy

I'm starting to learn scrapy and created the following function: import scrapy class ModelSpider(scrapy.Spider): name = "model" start_urls = [ 'http://www.icarros.com/' ] def parse(self, response): with open('brands....
asked by 06.09.2016 / 19:03
1
answer

progress bar in python 3

I'm trying to set up a progress bar to tell the percentage of running my Python script with varying different functions, but without success how would I create such a progress bar?     
asked by 30.08.2016 / 22:43
2
answers

Regex Python Searching dates

resultado_limpo = ((busca.find_all(string=re.compile(r'\d{2}\/\d{2}\/\d{4}\n\t\t\t\t\t\t\t\t')))) I'm trying to fetch dates in dd / mm / yyyy format I need to search with only year 2016 and have how I put the month in the variable case inside...
asked by 19.09.2016 / 13:06
2
answers

list.remove () in a row

I have the list: lista = ['', 'a', 'b', 'c', ' ', '', '', ' '] And I'm trying to remove the blank items: [''] or [' '] soon I have the following code: if(ret_b == [' ']): ret_b.clear() My question is: Can I do this in...
asked by 26.07.2016 / 17:53
1
answer

what is the error of this code [closed]

class Point3D(object): def _init_(self,x,y,z): a=str(x) self.x=a a=str
asked by 19.07.2016 / 05:21
1
answer

What is the [HttpGet] statement for? [duplicate]

In a given method of my Controller created in Asp Net MVC , I learned that I could put the [HttpGet] statement. In other cases, like in my models, I realized that you can also put [Length(10)] and still other things....
asked by 04.05.2016 / 14:57