Thread Webspider / Robot um Kontostand auszulesen (16 answers)
Opened by chess at 2012-12-11 16:31

GwenDragon
 2012-12-17 12:22
#164276 #164276
User since
2005-01-17
14563 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
#!perl

$line = 
'               <p>             
                        Aktuelles Guthaben: <br /> 
                        <span class="price">0,01&nbsp;&euro;</span>
                </p>
';
        my ($preis) = $line =~ m/Aktuelles Guthaben:\s<br\s+\/>\s+<span class=\"price\">([,0-9]+)&nbsp\;&euro\;<\/span>/im;
        print $preis, "\n";

So klappts auch mit ... ;)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Webspider / Robot um Kontostand auszulesen