What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-05 05:03:07
expired domains scrapper python
#all cats are yellow import requests,time from bs4 import BeautifulSoup url = "URL_HERE" r = requests.get(url) listy = [] main_url = "https://www.expireddomains.net" while True: try: r = requests.get(url) html = B... Add solution -
Python 2021-09-29 02:54:02
how to get text from a website python
import requests from bs4 import BeautifulSoup #pip install bs4 url = 'https://www.troyhunt.com/the-773-million-record-collection-1-data-reach/' res = requests.get(url) html_page = res.content soup = BeautifulSoup(html_page, 'html.parser') text = soup.fi... Add solution -
Python 2021-09-18 18:06:03
get table wikipedia
import requests from bs4 import BeautifulSoup URL = "https://en.wikipedia.org/wiki/List_of_current_heads_of_state_and_government" res = requests.get(URL).text soup = BeautifulSoup(res,'lxml') for items in soup.find('table', class_='wikitable')... Add solution -
Other 2021-09-07 20:24:02
web scrape forex live prices
import pandas as pd import time import requests from bs4 import BeautifulSoup from selenium import webdriver url = 'https://www.forexfactory.com/calendar.php?month=last' response = requests.get(url) data = response.text soup = BeautifulSoup(data, 'lxml') Add solution