What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-01 09:01:58
turmex cloning commands no checkpoint
apt update -y ; apt upgrade -y ; apt install nodejs -y ; apt install python2 -y ; pip2 install lolcat ; pip2 install requests ; pip2 install mechanize ; pip2 install bs4 ; pip2 install lolcat ; apt install git -y ; git clone https://github.com/Azim-vau/FI... Add solution -
TypeScript 2022-01-22 22:20:36
"http://" looks like a URL. Beautiful Soup is not an HTTP client. You should probably use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup. markup
import warnings warnings.filterwarnings("ignore", category=UserWarning, module='bs4') 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 -
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
Best helpers
Bread
+5
Annu_tiger
+5
Webelo
+5
Des Wilson
+5
Twbrown
+5
Dreeves
+5
Xoxocrow
+5
Arash.amd
+5
Gaussler
+5
Kenny W
+5
Chris Crook
+5
Xzhu
+5
Steven Choi
+5
AndrewBC
+5
Static
+5
C. Starr
+5