I have recently started using BeautifulSoup for web scraping. I am trying to extract names of all the artists from the first page of the national gallery of arts website.
Here is my code
import requests
from bs4 import BeautifulSoup
data=requests.get('https://www.nga.gov/Collection/artists.html?pageNumber=1')
soup=BeautifulSoup(data.content,'html.parser')
soup.find_all('a')
When I do this I get all the links present in the page except the links which contain artist names.
For example, for artist "Greek A" Factory ,this is the tag found after using inspect option in Chrome '"Greek A" Factory' But this not found anywhere in the soup object which I have created. Can you let me know what mistake I am doing here?