What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-31 23:55:06
open chrome with python stack overflow
import webbrowser url = 'http://docs.python.org/' # MacOS chrome_path = 'open -a /Applications/Google\ Chrome.app %s' # Windows # chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s' # Linux # chrome_path = '/usr/bin/google-c... Add solution -
Shell/Bash 2022-01-31 23:20:49
github pypi workflow
I had a fair amount of trouble trying to figure this out. Here's a link to the tutorial which helped me figure this out: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ When following tha... Add solution -
Python 2022-01-31 01:30:57
python quick tutorial
What is python? python is an easy-to-learn, future-proof programming language. It is particularly characterized by a large community and many libraries. You can download python here: https://www.python.org/downloads/ You can find the most python libar... Add solution -
Python 2022-01-24 21:35:27
find elements in selenium
from selenium import webdriver chrome_driver_path = 'C:\Development\chromedriver.exe' driver = webdriver.Chrome(executable_path=chrome_driver_path) driver.get('https://www.python.org') name = driver.find_element_by_name('q') print(name.get_attribute('p... Add solution -
Other 2022-01-22 19:36:19
web scraping print all p and h2 tags
import requests from bs4 import BeautifulSoup url = 'https://www.python.org/' reqs = requests.get(url) soup = BeautifulSoup(reqs.text, 'lxml') print("List of all the h1, h2, h3 :") for heading in soup.find_all(["h1", "h2", &q... Add solution -
Python 2021-11-20 21:49:14
Python Tkinter timer animation
#!/usr/bin/env python3 # Display UTC. # started with https://docs.python.org/3.4/library/tkinter.html#module-tkinter import tkinter as tk import time def current_iso8601(): """Get current date and time in ISO8601""" ... Add solution