0
import pandas as pd
import requests
from bs4 import BeautifulSoup

# Make a request to the website

url = "https://www.producthunt.com/topics/tech"
response = requests.get(url)

# Parsing the HTML content of the website

data = response.text
soup = BeautifulSoup(response.content, "html.parser")
print(data)
name = soup.findAll('a',{'class':"styles_title__jWi91"})
for n in name:
  print(n.text)
Harsha Biyani
  • 7,049
  • 9
  • 37
  • 61
  • Have you watched what happens when you use this website? The request returns the first 20 entries. As you scroll down, Javascript in the page detects this and dynamically fetches more entries. They aren't part of the page as downloaded. – Tim Roberts Feb 14 '23 at 04:32

0 Answers0