Posts by Eliton Oliveira • 5 points
2 posts
-
1
votes1
answer57
viewsQ: Pydantic - Convert "str" to "bool"
Good afternoon, I would like to convert data directly by pydantic. I receive in "str" data "no", "yes", "na", no" ... which needs to be converted to "bool". from pydantic import BaseModel class…
pythonasked Eliton Oliveira 5 -
-3
votes3
answers510
viewsA: Use Selenium without opening browser
Good afternoon, Take a look at Phantomjs https://phantomjs.org/download.html from selenium import webdriver driver = webdriver.PhantomJS() driver.set_window_size(1120, 550) driver.get("url")…