Answer the question
In order to leave comments, you need to log in
How to get all links to google sites that sell perfumes using BeautifulSoup?
I want to find all sites that sell perfumes. How can I implement what technology to use, tell me? Scrapy, BeautifulSoup with them I know how to find some information from a certain site. But how to find websites that sell perfumes?
import requests
import bs4
res = requests.get('https://www.google.com/search?q=')
soup = bs4.BeautifulSoup(res.text, 'lxml')
for link in soup.find_all('a', href=True):
print(link['href'])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question