Save your code or text easily without signing up. Simply comment with a search code, and when you return, just use that code to quickly find and retrieve your code or content.
Save your code or text easily without signing up. Simply comment with a search code, and when you return, just use that code to quickly find and retrieve your code or content.
7 Comments
Search Code: tmp-000
ReplyDeleteTHEME 01
#1b5448 - darkgreen
#bbd5ca - light
THEME 02
#69BD45 - theme
#e7edea - light
THEME 03
#172027 - dark color
#e9edf1 - light
https://huneroncodes.blogspot.com/2023/12/save-your-code-here-in-comment-session.html
ReplyDeleteAfrica & Austraila
ReplyDeleteLight Green
ReplyDeletefrom selenium import webdriver
ReplyDeletefrom selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time
# Define the search query
search_query = "search testing"
# Perform the search in a loop
for i in range(50): # Replace 50 with the number of times you want to perform the search
# Create a new instance of the Chrome browser in incognito mode for each iteration
options = webdriver.ChromeOptions()
options.add_argument("--incognito")
driver = webdriver.Chrome(options=options)
# Navigate to Google
driver.get("https://www.google.com")
# Find the search input field by its name attribute using By.NAME
search_box = driver.find_element(By.NAME, "q")
search_box.clear() # Clear the search input field
search_box.send_keys(search_query) # Enter the search query
search_box.send_keys(Keys.RETURN) # Press Enter to perform the search
time.sleep(2) # Add a delay to see the search results before the next iteration
# Close the browser after each search iteration
driver.quit()
from selenium import webdriver
ReplyDeletefrom selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time
# Define the search query
search_query = "search testing as a developer"
# Perform the search in a loop
for i in range(50): # Replace 50 with the number of times you want to perform the search
# Create a new instance of the Chrome browser in incognito mode for each iteration
options = webdriver.ChromeOptions()
options.add_argument("--incognito")
driver = webdriver.Chrome(options=options)
# Navigate to Google
driver.get("https://www.google.com")
# Find the search input field by its name attribute using By.NAME
search_box = driver.find_element(By.NAME, "q")
search_box.clear() # Clear the search input field
search_box.send_keys(search_query) # Enter the search query
search_box.send_keys(Keys.RETURN) # Press Enter to perform the search
time.sleep(2) # Add a delay to see the search results before the next step
# Find the first search result link and click it
try:
first_link = driver.find_element(By.CSS_SELECTOR, "a h3") # Assuming search results use h3 tag for titles
first_link.click()
time.sleep(2) # Add a delay to see the result before closing the browser
except Exception as e:
print(f"An error occurred while clicking the first link: {e}")
# Close the browser after each search iteration
driver.quit()
@ptech-MSG
ReplyDelete