I’m a chinaese,my english is very poor。I‘m sorry
But I encountered difficulties, I hope you can help me to solve.
The problem is Webparser.dll can’t capture javascript HTML。
why? Have a solution?
Thank you for your attention。
It is currently May 2nd, 2024, 12:15 am
Help,Excuse me,WebParser can’t capture javascript。
-
- Posts: 1
- Joined: June 19th, 2015, 9:57 am
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Help,Excuse me,WebParser can’t capture javascript。
No, if there are client-side Javascript commands being executed to output something, WebParser will not be able to do that. Rainmeter / Webparser is not a web browser, it simply captures the HTML output from a site. It has no way to understand or execute Javascript commands that a site produces.
What Webparser can "see" and parse is more or less what you would get if you go to a web page in your browser, and say "view source".
What Webparser can "see" and parse is more or less what you would get if you go to a web page in your browser, and say "view source".
-
- Rainmeter Sage
- Posts: 7185
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Help,Excuse me,WebParser can’t capture javascript。
Lingmin123, you could try to find a way to get what you need on that site by using parameters. Like in
http://wxdata.weather.com/wxdata/weather/local/CHXX0116[b]?cc=*&unit=m&dayf=5[/b]
OR...search for an alternative site that can get what you need by using parameters. For example, this will use Javascript, but this won't.
Still, if you're lucky enough, you can sometimes find the data you need even in a javascript page, IF the data in question doesn't require a mouse click or some other webpage navigation to get to it (if it's displayed as the default, for example).
http://wxdata.weather.com/wxdata/weather/local/CHXX0116[b]?cc=*&unit=m&dayf=5[/b]
OR...search for an alternative site that can get what you need by using parameters. For example, this will use Javascript, but this won't.
Still, if you're lucky enough, you can sometimes find the data you need even in a javascript page, IF the data in question doesn't require a mouse click or some other webpage navigation to get to it (if it's displayed as the default, for example).