Created
December 5, 2021 18:19
-
-
Save alixaprodev/b928f2bd50d9e322762c88d30a4b77e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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