Python Forum
Scraping a javascript RSSI indicator
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scraping a javascript RSSI indicator
#4
(Aug-10-2017, 02:44 PM)jon333 Wrote: I'm still not sure how to parse out "statusBarSignalBars":"4". For now all I need is to debug it to the screen.
The output is JSON,which is very common in web API's.
If just copy our output and assassin to variable data.
I can parse it.
>>> data['statusData']["statusBarSignalBars"]
'4'
You can try to get JSON with Requests,it parse JSON to a Python dictionary (same as json.load() from standard library).
import requests

page = requests.get('<removed>://192.168.1.1/srv/status?')
data = page.json
print(data['statusData']["statusBarSignalBars"])
Reply


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

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