Skip to content

Tag: python

Defining variable as long as array

I’m trying to write basic program that displays system properties such as total physical memory, processor information and operating system. But, I’m having trouble with learning ram total physical memory. I found total physical memory but it gave me value as a string in bytes. I wanted to convert…

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