Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

Web scraping a class (table) using Beautiful Soup

$
0
0

I'm trying to scrap the data from the tables from this website and store into a pandas dataframe, however the table are not defined as table in HTML, rather it is defined as a class. This what I've done attempted so far

from bs4 import BeautifulSoup
import requests 
import pandas as pd

# Collecting data from the RSPO website
RSPO_page = requests.get('https://rspo.org/members/page')

# if <Response [200]> is returned implies page was fetched succesfully
print(RSPO_page)

soup = BeautifulSoup(RSPO_page, "lxml")
soup.find_all('<\a>')

However, this just returns an empty list


Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>