How do you download images using Selenium Python? Selenium provides a way to create a screenshot of your browser’s view using the .save_screenshot(file_name) method, but this will take a photo of the viewport - what if you just want to download … [Read more...] about Download Images Using Selenium Python With Full Code Examples
Blog
REGEXEXTRACT Date From String In Google Sheets
How can you extract a date from a string in a cell in Google Sheets using the powerful REGEXEXTRACT() function? The REGEXEXTRACT(text, regular_expression) function has two parameters with the first labelled as text being the string operated on and … [Read more...] about REGEXEXTRACT Date From String In Google Sheets
Selenium: Download PDF From URL To Specific Folder – No Printing Or Special Keys (Python)
How do you download a PDF file when the URL opens up a PDF in your Chrome browser in Python without needing to print the page or use special key presses? And how can you set the location of the PDF? The trick to be able to download a PDF file … [Read more...] about Selenium: Download PDF From URL To Specific Folder – No Printing Or Special Keys (Python)
Apply Conditional Formatting To Entire Row: Google Sheets
How can you highlight an entire row based on a single condition in another column? To highlight an entire row based on a value in a column using conditional formatting requires using the INDIRECT() formula. A spreadsheet contains the following … [Read more...] about Apply Conditional Formatting To Entire Row: Google Sheets
Python: Sort List Of Tuples By First Element In 10 Seconds
How do you sort a list of tuples by the first element in each tuple in Python? To sort a list of tuples in Python use the .sort() list method if you want to modify the list to sort or the sorted() function if you want to generate a new … [Read more...] about Python: Sort List Of Tuples By First Element In 10 Seconds
What Does AttributeError: Module ‘datetime’ Has No Attribute ‘strptime’ Mean?
What does AttributeError: module 'datetime' has no attribute 'strptime'mean and how can you easily fix it? When parsing a string and transforming that to a date you can make use of the function strptime in the datetime module. To use this … [Read more...] about What Does AttributeError: Module ‘datetime’ Has No Attribute ‘strptime’ Mean?