Skip to content

Commit 0080887

Browse files
committed
Tweaks to WebParser Tutorial
1 parent 2a1f31f commit 0080887

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/tips/webparser-tutorial.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h2>The parent Webparser measure</h2>
122122

123123
<p>Now let's look at the first bit of information we want to retrieve.</p>
124124

125-
<p>First we will get the local IP address returned for our PC.</p>
125+
<p>First we will get the external IP address returned for our PC.</p>
126126

127127
<p>Open up WebParserDump.txt (the saved output from the website) and search for the location where the site is displaying the IP Address data:</p>
128128

@@ -203,7 +203,7 @@ <h2>The second child measure</h2>
203203

204204
<p>As long as the value from the parent measure that is returned in the StringIndex number is the URL to an image file, you can simply add the Download=1 option to the child measure, and the image will be downloaded. The value of the child measure will then be the full local path to the file in the Windows TEMP folder Rainmeter will create.</p>
205205

206-
We will modify our RegExp statement to get the flag data into a second StringIndex:
206+
<p>We will modify our RegExp statement to get the flag data into a second StringIndex:</p>
207207

208208
```ini
209209
[MeasureSite]
@@ -227,7 +227,7 @@ <h2>The second child measure</h2>
227227
Download=1
228228
```
229229

230-
What we are doing is appending the first part of the URL, the one we used on the parent measure to the beginning of the URL option, followed by the relative path that flag images are stored in on the site, which is /img/flags/ and a reference to [MeasureSite] and the StringIndex=2 option. Then we add Download=1 and that full URL of https://browserleaks.com/img/flags/US.png will be used to retrieve the image file.
230+
What we are doing is appending the first part of the URL, the one we used on the parent measure to the beginning of the URL option, followed by the relative path that flag images are stored in on the site, which is /img/flags/ obtained in [MeasureSite] and the StringIndex=2 option. Then we add Download=1 and that full URL of https://browserleaks.com/img/flags/US.png will be used to retrieve the image file.
231231

232232
The value of the child measure will in my case be:
233233

@@ -250,7 +250,7 @@ <h2>The third child measure</h2>
250250
RegExp=(?siU)data-ip="(.*)".*<tr><td>Country</td>.*src="(.*)".*<span class="flag-text wball">(.*)<
251251
```
252252

253-
<h3>Creating the child measure for the the third StringIndex, the city name value</h3>
253+
<h3>Creating the child measure for the the third StringIndex, the Country name value</h3>
254254

255255
``` ini
256256
[MeasureCountryName]

0 commit comments

Comments
 (0)