Python Forum

Full Version: Monitor specific line of code from website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im looking for some guidelines/tips when I want to monitor a specific line of code from a website.

The website that I want to monitor is dynamic. Every 1 minute or so it gives a new line of code. See my example:

[Image: AFuww.jpg]

Is it possible to monitor this I want to get a alert if data-x= =>4 times 18 or 19,20,21,21 etc.

Can you guys give me some ideas.

Thanks!
I would use BeautifulSoup from bs4 package, I would test it on my machine if it's works but I don't have source page.

pip install bs4

from bs4 import BeautifulSoup

from bs4 import BeautifulSoup
soup = BeautifulSoup('<svg></svg>', 'xml')
print(soup)