Skip to content

Tag: python-requests

Python Web Scrape Query DIV data-brand

I’m trying to grab a div tag in an html page, but the result is showing an empty list. I’ve provided the code and a picture of the html. The page_text variable is an empty list. Answer You are close to your goal, just add True as value in your dict: As alternative you can go with css selectors and