Skip to content

Tag: html

How to use a Python Variable in HTML code?

I have a String variable(name) that contains the name of the song. (Python) Here is my HTML code for website to download the mp3 song: With this code, I’d like to use the exact title of song as the name of the file when its been downloaded from the user. I want to use the name Variable from Python in

Substring any kind of HTML String

i need to divide any kind of html code (string) to a list of tokens. For example: or or What i tried to do : My output: So i tried to split at “/>” which is working for the first case. Then i tried several things. Tried to identify the “name”, so the first identifier of the html str…

Finding button by XPath with Selenium

I have been trying to locate the following button using Selenium WebDriver: I used css selector, xpath, class and nothing seems to work (even by just copy pasting the one given by the inspector. The closest I’ve been is locating the div with the class _1ibtygfe) Here is everything I tried, I’m des…