Posts by Rodrigo Eggea • 79 points
12 posts
-
-1
votes2
answers193
viewsA: Define criteria for sorting a list of lists
One way to perform this comparison is to join the internal list elements into a single string before comparing. This ordering will only be valid if the tiebreaker is alphabetical, so when the first…
-
0
votes3
answers1877
viewsA: Problem using python Selenium click()
According to A edureka! Communinity - How do I resolve the Elementnotinteractableexception in Selenium Webdriver, ElementNotInteractableException occurs when the element is found, but cannot…
-
0
votes3
answers1877
viewsA: Problem using python Selenium click()
I performed a test and got the same error "element not interactable". I have verified that this occurs because you have not closed your driver with the driver quit.(), then Chrome continues to load…
-
0
votes1
answer1193
viewsA: Web scraping with Python (Selenium and Request)
The best way to turn an HTML table into a more structured format is with the Pandas library. As I do not have access to the logged area, I will put an example code for you to adapt to your table:…
-
1
votes1
answer240
viewsA: Return the value from within the Selenium execute_script
There are two ways you can get the javascript value into Python with Selenium: 1) Change Javascript to return the value: Example: output = driver.execute_script("return 30") print(output) => 30…
-
1
votes1
answer421
viewsA: scraping google
According to article Search Engine Scraping Google has been using a variety of defensive methods that make web scraping a difficult task: Google tests the "User-Agent" of HTTP requests. Some…
-
1
votes1
answer365
viewsA: Automate web scraping in Python
According to article of Sasa Buklijas - Do not use Selenium for web scraping, Selenium is a tool for automated testing of web applications, it is not a Web Scraping tool (extraction of data from web…
-
0
votes1
answer152
viewsA: dowload location - Selenium Firefox + Python
The code seems correct, maybe the file type downloaded may not be coming with Mimetype of type "application/zip". See on this site all MIME Existing types. Solution: You can put more Mimetypes on…
-
0
votes1
answer348
viewsA: How to calculate polynomial roots with a list?
In his example the equation has no real roots. 5x^4+3x^3-2x^2+x-2 => Raízes imaginárias. So I switched to the equation: x^6 -3x^5 -6x^4 +10x^3 +21x^2 + 9x => Raizes: -1, 0, 3 It follows a code…
-
0
votes1
answer237
viewsA: Loop Selenium Phyton
To make the OLX Webscraping recommend you use the library "Beautifulsoap" and "Json" In the source code of every OLX page comes a script tag with all the information inside a JSON. <script…
-
2
votes1
answer509
viewsA: What is the best way to scrape the Datasus website in Python?
I do not recommend using Selenium, because according to Sasa Buklijas on "Do not use Selenium for Web Scraping" He claims that Selenium is not a specialized web scraping tool (data extraction…
-
0
votes1
answer201
viewsA: How to loop python code Selenium?
You have created a list called "comments" with three elements: comentarios = ["COMENTARIO1","COMENTARIO2","COMENTARIO3"] In your noose for k varies from 0 to 29, then in the line below:…