I am trying to extract all of the answers from a Quora url following a tutorial. my code looks like this
url = 'https://www.quora.com/Should-I-move-to-London'
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html.parser')
answers = soup.find("script", {"type": "application/ld+json"})
answers
However, when I try to get the text from the answers (bs4.element.tag object), it just appears as empty. How can I extract all of the answers? I also tried the following
data = json.loads(soup.find('script', type='application/ld+json').text)
But I am getting the following error
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
