BeautifulSoup: Why .select method returned an empty list?
问题 I want to simulate the 'click' action with the BeautifulSoup so that I can scrape the page returned. I tried selenium webdriver and BeautifulSoup, but I got an empty list every time. In the following code I copied the selector -- my last attempt, but it still doesn't work. # Scraping top products sales and name from the Recommendation page from selenium import webdriver from bs4 import BeautifulSoup as bs import json import requests import numpy as np import pandas as pd headers = { 'user