I am trying to scrape website with Beautiful Soup. After printing the container, It gives me an empty list. How can I fix this?
import requests
from bs4 import BeautifulSoup
import lxml
URL = 'https://www.monster.com/jobs/search/?q=Software-Developer&where=Australia'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'lxml')
container = soup.find_all('div', class_="results-list")
print(container)
The data is loaded from external URL via Ajax call. You can use
requestsmodule to simulate it and load the data:Prints: