Python Forum
Monitor specific line of code from website
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monitor specific line of code from website
#1
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!
Reply
#2
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)  
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to understand the meaning of the line of code. jahuja73 0 273 Jan-23-2024, 05:09 AM
Last Post: jahuja73
  Trying to loop through code to plot seaborn line plots across multiple subplots eyavuz21 0 1,576 Dec-05-2022, 10:46 AM
Last Post: eyavuz21
  Code to retrieve data from a website charlie13255 0 952 Jul-07-2022, 07:53 PM
Last Post: charlie13255
  Is it possible to make a program recognize how many clicks it has had on the monitor? jao 0 1,129 Feb-25-2022, 06:31 PM
Last Post: jao
  Python code to read second line from CSV files and create a master CSV file sh1704 1 2,353 Feb-13-2022, 07:13 PM
Last Post: menator01
Sad SyntaxError: from simple python example file from mind-monitor code (muse 2) warmcupoftea 4 2,752 Jul-16-2021, 02:51 PM
Last Post: warmcupoftea
  how long can a line of code be? Skaperen 2 2,173 Jun-09-2021, 06:31 PM
Last Post: Skaperen
  Printing a specific line from a JSON serpiente 4 3,695 Mar-14-2021, 07:27 PM
Last Post: buran
  I need a code line to spam a keyboard key | Image detection bot Aizou 2 3,046 Dec-06-2020, 10:10 PM
Last Post: Aizou
  Line of code to show dictionary doesn't work MaartenRo 2 2,397 Jul-28-2020, 03:58 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020