Skip to content

Instantly share code, notes, and snippets.

@alixaprodev
Created December 5, 2021 18:19
Show Gist options
  • Save alixaprodev/b928f2bd50d9e322762c88d30a4b77e2 to your computer and use it in GitHub Desktop.
Save alixaprodev/b928f2bd50d9e322762c88d30a4b77e2 to your computer and use it in GitHub Desktop.
import requests
import urllib.request
import time
from bs4 import BeautifulSoup
url = 'https://www.amazon.com/s?k=python+books&ref=nb_sb_noss_2'
response = requests.get(url)
htmldata = BeautifulSoup(response.text, "html.parser")
print(htmldata)
h4tags=htmldata.findall('h4')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment