I would like to scrape all exhibitor names and information from this link: https://asiatechxsg.com/exhibitors/
into a csv file.
I have this written this:
html = requests.get('https://asiatechxsg.com/exhibitors/').text
bs = BeautifulSoup(html)
exhibitor_links = []
for link in bs.find_all('a'):
if link.has_attr('href'):
exhibitor_links.append(link.attrs['href'])
print(link.attrs['href'])
but the links are not exhibitor links. Assuming the links are correct, I would then iterate through each link in exhibitor link, and extract name and information from them and store it into a dataframe. However, I am also unclear about how to go about extracting name and information. I am new to webscraping. Thank you in advance for any help provided.
user22279494 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.