What do you want to save?
Add Code snippet
New code examples
-
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 -
TypeScript 2021-11-22 02:55:18
how to extract comments from word python
#!/usr/bin/env python # Given a .docx file, extract a CSV list of all tagged (commented) text # This is version 6.0 of the script # Date: 12 February 2020 import zipfile import csv from bs4 import BeautifulSoup as Soup import tkinter as tk from tkinter ... Add solution -
Python 2021-11-18 16:43:13
export html table to csv python
# Importing the required modules import os import sys import pandas as pd from bs4 import BeautifulSoup path = 'html.html' # empty list data = [] # for getting the header from # the HTML file list_header = [] soup = BeautifulSoup(op... Add solution -
Other 2021-11-18 15:11:23
data-reactid beautifulsoup
from bs4 import BeautifulSoup import requests import sys from datetime import datetime, timedelta import pandas as pd code = input("Enter the NYSE stock symbol: ") #Your Choice Stock source = requests.get('https://finance.yahoo.com/quote/'+ co... Add solution -
Python 2021-11-13 10:37:10
python webscraper stack overflow
import urllib2 from BeautifulSoup import BeautifulSoup # or if you're using BeautifulSoup4: # from bs4 import BeautifulSoup soup = BeautifulSoup(urllib2.urlopen('http://example.com').read()) for row in soup('table', {'class': 'spad'})[0].tbody('tr'): ... Add solution
Best helpers
Blank
+5
Grin
+5
Hwsolutions
+5
Charlemagne
+5
SYJ
+5
A. Pelicker
+5
KMC
+5
Jonjie
+5
Highlightman
+5
Paul Knight
+5
Karl
+5
WYSIWYG
+5
Required
+5
Saylestyler
+5
Deverejones
+5
Zkanoca
+5
Frank Jaeger
+5