Posts by Vitor Araújo • 141 points
5 posts
-
0
votes3
answers733
viewsA: Display only words that have an even number of vowels within a sentence
Your mistake is simple. if vPalavras % 2 == 0: that code means, if the word remnant 2 equals zero so it prints, magnifica has 4 vowels, so 4%2 = 0, so it prints. I suggest using different…
pythonanswered Vitor Araújo 141 -
1
votes1
answer5613
viewsA: Error List index out of range
this error only happens when you try to call an index value that has no value or has not been initialized ( example, call an index = 4 in a list with 3 items). most likely the error happens because…
pythonanswered Vitor Araújo 141 -
2
votes1
answer1266
viewsA: Web Scraping Selenium + Python on JS-generated website = difficulty mapping elements
From what I read I don’t know if I understand correctly what you want to do, but Selenium has several specific modules to be able to do what you want... the problem is that you would need to go into…
-
0
votes2
answers4781
viewsA: Sum of column totals
first try using for as long as a given exists. lista = [] for i in arq: arq.split('?') #o '?' é o que separa cada índice no seu arquivo ou variável que contém a informação que quer this way you have…
pythonanswered Vitor Araújo 141 -
1
votes0
answers310
viewsQ: how to capture specific tokens in python requests
I need to capture specific cookies from a python code and pass them on later, the problem is, if I set cookies manually they work for a while but after a few days they expire. I can pick up a…