Thread grep <br> in text (26 answers)
Opened by Hunnenkoenig at 2009-11-20 12:34

Hunnenkoenig
 2009-11-21 09:09
#128389 #128389
User since
2009-10-27
40 Artikel
BenutzerIn
[default_avatar]
Unten ist der code. Du kannst die ausgabe über iphoneapp-promocodes.com/cgi-bin/roller3.pl?id=321234472 abrufen (ich setze keinen richtigen link, damit das nicht im google indexiert wird)

Durch die ID nummer kann man verschiedene apps abrufen.

Die komplette XML kann man durch diesen link abrufen: iphoneapp-promocodes.com/cgi-bin/roller2.pl?id=321234472

Nachdem apple die XML abfrage geändert hat, kann man es nur im quellcode ansehen. Ist leider nicht strukturiert.

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /usr/bin/perl
# Autofetch Info


my $store;
my $coCode;
my $appId;
my $counter = 0;
my $currentSoftware;
my $temp;
my $flag = 0;

print "Content-type: text/html\n\n";


splitVars();
$currentSoftware = $appId;
$store = 143441;
fetchReviews();


sub splitVars{
my $item = "";
my $riz = $ENV{'QUERY_STRING'};
if($riz){
my @rizray = split("&", $riz);
foreach $item (@rizray){
if(index($item, "id", 0) >= 0){
$appId = substr($item, index($item, "id", 0)+3, length($item));
}
elsif(index($item, "country", 0) >= 0){
$coCode = substr($item, index($item, "country", 0) + 8, length($item));
}
}
}
}


sub fetchReviews()
{

my $doit = qq{curl -s -A "iTunes/4.2 (Macintosh; U; PPC Mac OS X 10.2" -H "X-Apple-Store-Front: $store-1"
'http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=$currentSoftware'};


my $riz = `$doit`;
my @rizray = split('\n', $riz);

my @rizray = grep( /<TextView topInset="0" leftInset="0" rightInset="0" styleSet="normal11">
<SetFontStyle normalStyle="descriptionTextColor">/, @rizray);
foreach my $item (@rizray)
{

print "$item";
}
}


Ich will diesen teil auslesen:

Quote
Advanced Rollercoaster Builder is a logical puzzle game. Your goal is to build a Rollercoaster from one side of the screen making your train able to collect the stars on the way, and reach the other side without crashing.

There are five levels, and all of them have five stages, so you get 25 missions all together with constantly raising severity.

After finishing all the levels you can see your actual High Score, which you can share online with others.

You can replay the game until you reach the perfect state and collect ALL the stars.

You can view a "replay video" after each finished stage.

Features:

- 5 Stages
- 25 Missions
- AGON based Online High Score
- Video Replay
- Unique Gameplay

If you liked Line Rider, you will love Advanced RollerCoaster Builder.


Watch the YouTube video by following the link from our official website.

http://www.youtube.com/watch?v=4qYLnvgds_4

Last edited: 2009-11-21 09:56:21 +0100 (CET)

View full thread grep <br> in text