[Solved] python requests only returning empty sets when scraping
Selenium treats frames as separated pages (because it has to load it separatelly) and it doesn’t search in frames. And page_source doesn’t return HTML from frame. You have to find <frame> and switch to correct frame switch_to.frame(..) to work with it. frames = driver.find_elements_by_tag_name(‘frame’) driver.switch_to.frame(frames[0]) import urllib from bs4 import BeautifulSoup from selenium import webdriver … Read more