Python Forum
Scraping a javascript RSSI indicator
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scraping a javascript RSSI indicator
#1
I have a Raspberry Pi connected to a Verizon MiFi LTE modem/router. I am trying to scrape the RSSI signal from the 'welcome page' of the device. No login is required and I'm able to get the 200 status code and also view the page content. I'm not really sure where to go from there. I'm not sure any lxml class would recognize it. Any ideas?

from lxml import html
import requests

page = requests.get('<removed>',  headers={'User-Agent':'test'})

tree = html.fromstring(page.content)

rssi = tree.xpath('//*[@id="statusBar_rssi"]')

print (rssi)
returns []

Here is what Chrome inspector shows -
<li id="item_statusBar_rssi"><span id="statusBar_rssi" style=""><div class="rssi_4"></div>Data</span></li>
The div changes with the number of bars displayed.

Thank you.
Reply


Messages In This Thread
Scraping a javascript RSSI indicator - by jon333 - Aug-10-2017, 03:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem Converting Tradingview Indicator to Python code kralxs 1 511 Apr-27-2024, 06:10 PM
Last Post: kralxs
  CandleStick & MACD Indicator using plotly.graph_object bianca 0 700 Aug-18-2023, 06:46 PM
Last Post: bianca
Brick Javascript based web page scraping amjadraza26 1 1,595 Oct-21-2021, 09:36 AM
Last Post: Larz60+
  Web scraping Possible JavaScript issue johnboy1974 2 2,165 Apr-11-2021, 08:53 AM
Last Post: johnboy1974
  Progress Indicator for Xmodem 0.4.6 KenHorse 1 2,120 Jan-30-2021, 07:12 PM
Last Post: bowlofred
  Creating a list of RSSI value and send it to the server. Azuan 0 2,744 Jun-08-2020, 11:22 PM
Last Post: Azuan

Forum Jump:

User Panel Messages

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