Published
- 1 min read
use beautifulsoup
The solution for this is noted below
use beautifulsoup
Solution
#start
from bs4 import BeautifulSoup
import requests
req = requests.get('https://www.slickcharts.com/sp500')
soup = BeautifulSoup(req.text, 'html.parser')
Try other methods by searching on the site. That is if this doesn’t work