Skip to content

Commit

Permalink
Merge pull request #58 from nek7u/fixed-webparser-syntax-plugin2measure
Browse files Browse the repository at this point in the history
Update webparser-tutorial.html
  • Loading branch information
jsmorley authored Nov 4, 2024
2 parents 49b3d23 + 7b154a7 commit fa00854
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions source/tips/webparser-tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ <h2>The parent Webparser measure</h2>
<p>Let's start building our <code>RegExp</code> option:</p>

``` html
MeasureSite]
Measure=Plugin
Plugin=WebParser
[MeasureSite]
Measure=WebParser
URL=https://www.ipaddress.my/
RegExp=(?siU)<img src="/images/flags/(.*)"
UpdateRate=3600
Expand Down Expand Up @@ -177,8 +176,7 @@ <h3>Creating the child measure for the the first StringIndex, the flag image val

``` ini
[MeasureFlagImage]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=https://www.ipaddress.my/images/flags/[MeasureSite]
StringIndex=1
Download=1
Expand Down Expand Up @@ -217,8 +215,7 @@ <h2>The second child measure</h2>

``` ini
[MeasureSite]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=https://www.ipaddress.my/
RegExp=(?siU)<img src="/images/flags/(.*)".*<td width="40%">IP Address:</td>.*target="_blank">(.*)<
UpdateRate=3600
Expand All @@ -234,8 +231,7 @@ <h3>Creating the child measure for the the second StringIndex, the IP address va

``` ini
[MeasureIP]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=[MeasureSite]
StringIndex=2
```
Expand Down Expand Up @@ -270,8 +266,7 @@ <h3>Creating the child measure for the the third StringIndex, the city name valu

``` ini
[MeasureCity]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=[MeasureSite]
StringIndex=3
```
Expand All @@ -282,8 +277,7 @@ <h3>And so on...</h3>

``` ini
[MeasureSite]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=https://www.ipaddress.my/
RegExp=(?siU)<img src="/images/flags/(.*)".*<td width="40%">IP Address:</td>.*target="_blank">(.*)<.*<td>City:</td>.*<td>(.*)</td>.*<td>Country:</td>.*target="_blank">(.*)<.*<td>State:</td>.*<td>(.*)</td>.*<td>Latitude:</td>.*<td>(.*)</td>.*<td>Longitude:</td>.*<td>(.*)</td>
UpdateRate=3600
Expand All @@ -294,26 +288,22 @@ <h3>And so on...</h3>

``` ini
[MeasureCountryName]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=[MeasureSite]
StringIndex=4

[MeasureRegion]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=[MeasureSite]
StringIndex=5

[MeasureLatitude]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=[MeasureSite]
StringIndex=6

[MeasureLongitude]
Measure=Plugin
Plugin=WebParser
Measure=WebParser
URL=[MeasureSite]
StringIndex=7
```
Expand Down

0 comments on commit fa00854

Please sign in to comment.