Posts by Rafael Ribeiro • 93 points
10 posts
-
0
votes1
answer62
viewsA: Error while running Selenium
The error message ModuleNotFoundError indicates that the package is not installed in your environment. Based on the prints you submitted, I assume you are using Anaconda (note that there is a (base)…
-
3
votes1
answer477
viewsA: Web scraping at a specific url with Beautifulsoup
I hope the code below helps. As the HTML of the page is not very consistent the day March 27 was not captured... I left this exception for you to solve because the 99% of the work is solved…
-
0
votes1
answer949
viewsA: How to compress files using python limiting file size by 50 Mb
The script below will accomplish the task of compressing the files into multiple volumes. Just run in the directory where your files are. As the fernandosavio has already said, I suggest you…
pythonanswered Rafael Ribeiro 93 -
0
votes1
answer226
viewsA: image module does not run on iPython3
According to the documentation Pillow, you will need to uninstall the PIL: Pillow and PIL cannot co-exist in the same Environment. Before Stalling Pillow, Please Uninstall PIL. Soon, uninstall PIL…
-
1
votes2
answers560
viewsA: List indexes in python
The problem can be solved with a few lines of code: from operator import itemgetter a = [4, 3, 1, 2, 3] sub_ind_novo = [96, 7, 97, 23, 18] # relacionamos as listas e ordenamos de acordo com a lista…
-
0
votes1
answer37
viewsA: Type of a data structure
The Dictionaryelement elements are Wrappers relative to the basic type of Python Dict, and behave in much the same way, except because they have the 'Attributes' property that captures XML…
-
0
votes2
answers112
viewsA: How to use "for" and "While" to capture cell tags from various tables in an html file?
This html has several unopened tags and that is why the Beautifulsoup parser is lost. You can check the flaws on this site: https://www.aliciaramirez.com/closing-tags-checker/ The following tags…
-
0
votes2
answers3050
viewsA: Scroll through a Dict until it is empty in Python
To sort one list according to the other I developed the following solution: hey = ['item1', 'item2', 'item3', 'item4'] lol = [32, 54, 56, 64] ''' vamos cria uma lista de transposição com a posição…
-
0
votes1
answer105
viewsA: Problem in Dict class and merging large amount of elements per Python Dict
Allan, According to the documentation of the zip function: The iterator stops when the shortest iterable input is exhausted. Therefore, there must be some error in the validation of your data that…
-
2
votes2
answers991
viewsA: Do word search inside a list and return tuples sorted in PYTHON
from operator import itemgetter import re sentence = 'london bridge is falling down falling down falling down london bridge is falling down my fair lady' def count_words(text): words =…