processing of data from the opap web site

Lilis

Staff member
7 Nov 2003
9,706
9,151
113
Won't the new companies also enter? they will enter
and then "they will see the roots from the roots"

Since yesterday Monday complete blackout, the last coupon in xml format was No. 584
Bet on the Agency - opap.gr
they stopped the update here as well.

the "printed match schedule" is still that of the four-day period that has already expired.

In other words, someone will be waiting to see - who, how and what - in the matches of pa-sa-ky-deutera with the 250 races prepared in the morning.

ha, when all the bookmakers take the odds from the third.
 
Last edited:
  • Like
Reactions: venoss
Answer: OPAP's Yapids want the world in the dark......

Until yesterday morning I was able to download 586 as well. It's dark today, they probably stopped the domain altogether www.pamestoixima.gr (he's not responding today) so I'm hoping he'll either get back up or offer the xml to some of his addresses Home - opap.gr.

For master programmers there is the feed in json:

http://www.opap.gr/web/services/rs/...rt/program/4100/0/sport-1.json?localeId=el_GR

from which the newspapers probably also draw (very difficult - rather unlikely). For most people it certainly isn't.

Greetings

beholder
 
Answer: OPAP's Yapids want the world in the dark......

Hm, I hadn't seen that post about json. Actually: I've come to the same conclusions.

As for the reasons why the father made this move:
1) He didn't like others taking his coupon. I don't think so. It's not a prediction site. What does he care about how many people join? It has no ads, it's not affiliated with other betting companies (can you imagine? Play now at bet365. They have better odds than us : bravo:)

2) He didn't want his data to be included in comparative rakes. Again, however. Many sites get his data from third parties. Write opap coupons on google. Half of the sites on the 1st page of google normally have the coupon from "somewhere else".

3) He just wanted to convert it to json. I won't analyze why. Anyone interested can compare json with xml on google. Now why he didn't leave xml as well, that's another topic.


About how newspapers etc. get their coupon now. Many ways.

1) Excel from a hidden folder with a password. It is not necessary to do it manually. If it is a csv you can have a cron job to take the file with ftp and put it in the database.

2) The xml should normally exist as it used to exist and very simply through .htaccess they should redirect everyone to the main page except for some IPs that still see the xml

3)From json

In any case, it is not impossible to get the data from json. Getting someone to get the file is done very simply with curl. From there on, so that we don't get blindfolded trying to read the json, we make it xml and this is where the difficulties begin. xml is not the same as the old one. AFTER the conversion we get something like

In a few words, we don't get the same xml. We get an xml like it would be from an online book. Forget the very beautiful Apodosi1, ApodosiX, etc. Now they have id/values!!!!! So it takes a "little" work to get the data like before :(.

Edit: Oh, I didn't know that the code cuts the tags :(After all. There are xml tags around the numbers that were flying! I'm telling the truth!!!
 
Last edited by administrator:
Answer: OPAP's Yapids want the world in the dark......

Poking around the OPAP page where it shows the coupon in the old format, I found this javascript:

http://www.opap.gr/html/demo/bet/couponBetting/couponBetting.js

which probably transforms the json into the displayed HTML.

I don't know if the code is reusable, but inside it refers to each json id, so it's a start for anyone who wants to write their own code,

greetings

beholder
 
Answer: OPAP's Yapids want the world in the dark......

I took a tip : bravo:: bravo:: bravo:and I said to share it :p

Logically, it is not the best possible since it converts the json to XML first, but it is quite convenient as we already had the code that took the data from XML.

First, with the lovely curl, we get the json file just like we get the xml

$json now has all the opap crap.

Then we decode it in an associative array with

code:
$json=json_decode($json,true);
And this is where the problems begin that took me a few hours until I understood what was going on :(In theory, if it were a simple associative array with simplexml, we would easily make it xml. The problem is that the array we get sometimes has numbers for values.

The json here wants to tell us that everything contained in this array are children of the original one, which in essence is not an element.

If we leave it like that, we get some cute xml tags of the type
: goood: .The end of everything, because I don't know if anyone understands what I want to say, so the way I say it, let's get to the juice!

So now we have a very nice xml file. This particular xml is definitely very different from the old one. It has different elements at the end so you have to change the old code. Also many childs have other childs so you will have to change your old code to get the prices. Finally, you have to sit down manually by looking at the opap coupon to see what prices each id corresponds to.

I believe that this is fine print anyway. Since someone had managed to get the data from the original opap xml, I don't see why they can't do it now. If someone has a problem, let me know :p.I hope they don't cut it after all the hours I ate to get it...

PS: At some point I have to start putting tones too :(
 
Last edited by administrator:
Answer: OPAP's Yapids want the world in the dark......

Kids good morning,

I am a programmer and involved in a project that used the old opap url for renderings and algorithmic analysis.

You can find the new feed in XML by simply changing it .json to .xml in url (known technique). So this works in xml:

http://www.opap.gr/web/services/rs/...ort/program/4100/0/sport-1.xml?localeId=el_GR

I haven't found a way to translate it into English, but since the application we're releasing was in the testing phase and I'm in a hurry to find an alternative, I'll sit down and make a parser now for xml. whoever has a day let me send them the code (.NET)
 
Answer: OPAP's Yapids want the world in the dark......

The following code saves the xml and then inserts the data into the database.

:-I didn't use the original opap xml because it contains attributes. It's easier to read when you see it but it's worse when you go to make the parser

:- It's not an optimal code and I don't use it. It's just more readable. These :p

:-I haven't succeeded in a game where it is blocked or has a delay so I can see what it does in these cases. It takes it in the status but because the opap is euro-opap it writes it in English and I don't know what words it uses.


The connector filke obviously connects to the database.
The array is not mine but a class that I use to convert an array to xml when the array has numeric values.
 
Last edited by administrator:
Answer: OPAP's Yapids want the world in the dark......

good evening guys

two questions

the link
http://www.opap.gr/web/services/rs/...ort/program/4100/0/sport-1.xml?localeId=el_GR
where exactly is it?

I knew that in the old version, above each ticket there was also the corresponding button for XML.

now;

because I want to see how the link changes from coupon to coupon.
in the previous version the ID was changed at the end.

now;
thx and welcome I found you.: bravo:: bravo:: bravo:
 
test

I transferred the mentioned on the coupon....
 
Last edited:
Ans: test

THE PROBLEM.................

If three or four days pass and it is NOT taken

coupon what's up ? ; ;

Have you senior programmers thought about it?

has a solution been found?

................
 
Ans: test

(I tried to make a video but it was difficult and I will write them down)


First of all, because we want the official data from OPAP

and not from any website on the internet.

from the link
www.opap.gr

> bet > let's bet > bet at the agency

we see the daily coupon eg today 18/08/2011

and again at the end of the link the number 2518.

The number 2518 corresponds to the coupon of 18/08/11


Our app only displays the last 180 days coupons

Clicking on the date and we go back to them

months we will see for today that the recent daily coupon

it is from Ky 20/02/2011 with number 2339 as it appears in the link.


2338 + 180 = 2518 , the current day.


If we also press the print sign and check it

box in the "match score" in the new window that opens

we will have the data of 20/02/2011


On the site, however, there are data from 11/09/2010

with coupon number 2177 (regardless of whether OPAP doesn't show them to us)

2176 and back Do not show.

..................
later on
 
Last edited:
Re: processing of the data from the opap's website

Good evening, first post, I found you while searching for the topic. Only here I found answers. Thank you.

I want the coupons because I'm trying to make a system that calculates odds based on past results at the same odds.
I don't know what I will get or if this is possible but I really want to see results. Later, if this base works, I will add forms and variables. I have many interesting ones.

I want, if possible, to give me the previous vouchers if you have them.

Thank you again.
Hello joy!

edit : php , mysql working.
 
Last edited:
Re: processing of the data from the opap's website

sometime in October - before the month is out -

I will put in an Excel file the data I have - with any comments -

from November 11, 2000 until today

( Will ) missing files from 28/01/2000-09/11/2000

I estimate about 6-7 thousand fights, maybe it's up to 8.

after all, it doesn't really matter...

I have the coupons from January 01, 2007 onwards,

but I don't need to "upload" them.


...............................

How to edit the coupon as given by OPAP

you have found ;

Also a way to see the changes in the current coupon of the day

now that OPAP doesn't show them to us?


If so, I would ask you to put him...

yours may be easier and faster
 
Re: processing of the data from the opap's website

From the friends' links I found logic for the decryption of the new feed.

I didn't know json, but from xml there is a solution, inside js http://www.opap.gr/.../couponBetting.js it says where the codes resist.
Here :
codes[1] is Greek and codes[2] is English.
And in the xml there is the following code:

]So there is a connection.

I'm doing pretty well with all this data.
At the end of the week I will post the code, I only know php-mysql.

I look forward to the coupons!
 
Last edited by administrator:
Re: processing of the data from the opap's website

Good morning,
I'm trying to find an old coupon to see its structure and export the new coupon in old style. But I can't find it. Any volunteers?
 
Re: processing of the data from the opap's website

April 2008 and

July 2011

different "structures"

nothing to do between them and the new coupon

in the old days, you used to praise coupons and coupons

in Neo only one day at a time (if you don't save it in the current days)
better for sure.


because mediafire doesn't open for me today

042008_072011.rar - 4shared.com - online file sharing and storage - download

: priest:

The procedure you describe below

step by step how is it done?

can we take in an Excel sheet?


From the friends' links I found logic for the decryption of the new feed.

I didn't know json, but from xml there is a solution, inside js http://www.opap.gr/.../couponBetting.js it says where the codes resist.

I'm doing pretty well with all this data.
At the end of the week I will post the code, I only know php-mysql.
 
Last edited by administrator:
Re: processing of the data from the opap's website

You also have a personal message
 
Re: processing of the data from the opap's website

: dope: its ready : sign:
Edit1: I don't have excel!
Edit2 : Allaxa to kodika , evala stin arhi unset metavlites giati hanotan
 
Last edited by administrator:
  • Like
Reactions: nectar and BetLaden
Re: processing of the data from the opap's website

The previous one had a problem with the variables.

This gives the correct results:
 
Last edited by administrator:
Answer: processing the data from the opap's website

Good evening guys, I realize I'm resurrecting an old topic but the information I found here was very helpful.

I have a question about the following link:
http://www.opap.gr/web/services/rs/...ort/program/4100/0/sport-1.xml?localeId=el_GR

From this we can get the current day's coupon in xml. My problem is that I would like to somehow be able to get the next day's coupon, actually I would like every day at 00:30 for example to draw the day's coupon, but because of the late night games on coupon at the given url is renewed much later. Does anyone know if there is a variable we can add to this url so that we get another coupon besides the current one?

Thanks!
 

Predictions

  • 19:45
    COSMOTE SPORT 8 HD
    • Fiorentina - Victoria Plzen
  • 19:45
    COSMOTE SPORT 9 HD
    • Lille - Aston Villa
  • 20:00
    COSMOTE SPORT 2 HD
    • European Football Show Greek Edition 2023-24
  • 22:00
    COSMOTE SPORT 3 HD
    • PAOK - Club Brugge
  • 22:00
    COSMOTE SPORT 4 HD
    • Fenerbahce - Olympiacos
  • 22:00
    COSMOTE SPORT 5 HD
    • Roma - Milan
  • 22:00
    COSMOTE SPORT 6 HD
    • West Ham - Leverkusen
  • 22:00
    COSMOTE SPORT 7 HD
    • Atalanta - Liverpool
  • 22:00
    COSMOTE SPORT 8 HD
    • Marseille - Benfica
  • 00:05
    COSMOTE SPORT 2 HD
    • European Football Show 2023-24
  • 14:00
    COSMOTE SPORT 3 HD
    • UEFA Youth League Show
  • 15:00
    COSMOTE SPORT 3 HD
    • Olympiacos - Nantes
  • 17:00
    COSMOTE SPORT 3 HD
    • UEFA Youth League Show
  • 18:00
    COSMOTE SPORT 8 HD
    • Al Nasr - Al Fayha
  • 19:00
    COSMOTE SPORT 3 HD
    • Porto - Milan
  • 19:30
    Novasports 2HD
    • Nuremberg - Paderborn
  • 19:30
    COSMOTE SPORT 2 HD
    • Genoa - Lazio
  • 21:00
    COSMOTE SPORT 8 HD
    • Al Ahly - Al Hilal
  • 21:30
    Novasports 3HD
    • Eintracht Frankfurt - Augsburg
  • 21:30
    Novasports 4HD
    • Palermo - Parma
  • 21:30
    Novasports Start
    • Tenerife - Leganes
  • 21:45
    COSMOTE SPORT 7 HD
    • Cagliari - Juventus
  • 22:00
    Novasports 1HD
    • Athletic Bilbao - Granada
  • 22:00
    Novasports 2HD
    • Nice - Lorient
  • 22:15
    COSMOTE SPORT 2 HD
    • Rio Ave - Aruca
  • 20:15
    ERT3
    • Olympiacos - Prometheus
  • 01:00
    COSMOTE SPORT 7 HD
    • NBA TV 2023-24
  • 04:00
    COSMOTE SPORT 7 HD
    • NBA TV 2023-24
  • 20:15
    ERT3
    • Panathinaikos - Peristeri
  • 20:55
    COSMOTE SPORT 4 HD
    • NBA Action 2023-24 E3326
  • 21:30
    Novasports Prime
    • Baskonia - Virtus Bologna
  • Tomorrow 20-04-2024
  • 01:00
    COSMOTE SPORT 7 HD
    • NBA TV 2023-24
  • 02:00
    COSMOTE SPORT 4 HD
    • SoFi NBA Play-In Tournament
  • 04:00
    COSMOTE SPORT 7 HD
    • NBA TV 2023-24
  • 04:30
    COSMOTE SPORT 5 HD
    • SoFi NBA Play-In Tournament
  • 12:00
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 14:00
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 17:00
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 19:00
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 19:30
    Novasports 6HD
    • WTA 500 Porsche Tennis Grand Prix
  • 06:30
    ANT1 +
    • Formula 1 Shanghai International Circuit Practice 1
  • 09:25
    COSMOTE SPORT 5 HD
    • WRC 2024
  • 10:30
    ANT1 +
    • Formula 1 Shanghai International Circuit Sprint Qualifying
  • 10:40
    COSMOTE SPORT 5 HD
    • WRC 2024
  • 11:25
    COSMOTE SPORT 5 HD
    • WRC 2024
  • 12:45
    COSMOTE SPORT 5 HD
    • WRC 2024
  • 13:30
    Novasports 6HD
    • WTA 500 Porsche Tennis Grand Prix
  • 13:30
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 14:30
    Novasports 5HD
    • WTA 250 Open Metropole
  • 15:30
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 17:30
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 19:30
    COSMOTE SPORT 6 HD
    • ATP 500 2024
General Chat
Help Users
  • No one is chatting right now.
  • Ertzan Ertzan:
    that's why it was interrupted, I'll tell you what happened here
  • PANATHA PANATHA:
    That's why I'm here...to inform about everything : bravo: : ROFLMAO: :p
  • B Forum Bot:
    User BraShaVa8888 started a new topic called "|_ Live _|" in the Football Predictions.
  • Ertzan Ertzan:
    according to the Greek media, as I read, Panathaspor decided to buy Giannis Goumas from Turkey. Very good move, well done : smk1:
  • Ertzan Ertzan:
    According to the coach Ismail Kartal, except for Ostervolde where he operated and Perez there is no absence. So what I'm waiting for and what 99% of those who watch Fener are waiting for is the following lineup

    Livakovic

    Osagi Samuel-Tsikou-Bekao-Kantioglou

    Ismail Yuksek-Fred
    Shimansky
    Kahveji-Tadic
    Jacko
    this is Fener's factory setting here you don't even need a coach everything works on auto
  • PANATHA PANATHA:
    Where did you read this?
  • Ertzan Ertzan:
    according to beisports turkey is a publication of sportime says
  • Ertzan Ertzan:
    was the lover accused of doping? he probably overdid it with the viagra : smk1:
  • PANATHA PANATHA:
    Sportime has hit rock bottom....never believe it...
  • PANATHA PANATHA:
    Of course you're laughing, but the story with Ioannidis showed once again how low social media has become....every idiot writes that he's being bullied without any natural consequences....and it's a good thing that within a few hours the hypothesis was proven to be a hoax ...and it didn't work
    2-3 days...
  • Ertzan Ertzan:
    but the situation is laughable, In today's day I don't wonder about anything really
  • Ertzan Forum Bot:
    User Ertzan started a new topic called "IFC Cup#15 FINAL (20-21/4/2024)" in the IFC Competition.
  • Ertzan Ertzan:
    In my eyes with the eleven that Fener has sent and it's the one I wrote above Fener normally wins 2-0 at least because the ball is a whore as Osim also said everything we see can go wrong (see yesterday's)
  • Ertzan Ertzan:
    Atjun showed once again how big a Fenerbahce fan he is and the match will be shown on free TV8 : smk1:
  • Ertzan Ertzan:
    with the entry of Zaits, Fener is currently playing with 10 players
  • PANATHA PANATHA:
    I say it will go to penalties
  • Ertzan Ertzan:
    I wish
  • Ertzan Ertzan:
    Dzikou holds the defense
  • Ertzan Ertzan:
    at the moment Fener is playing with 10 players
  • Ertzan Ertzan:
    Krunic even enters
  • Ertzan Ertzan:
    if Olympiacos can and really scores its magic, if it loses it deserves its fate
  • Ertzan Ertzan:
    Now the coach of Fener "fucked" them but he tells you that Olympiacos is not coming so I can put them
  • Ertzan Ertzan:
    as I wrote to a friend besides Batshuayi, I wouldn't change anyone and even if their legs had to be amputated, maybe instead of Bekao if he was injured I would put Bonucci for the penalties
  • Ertzan Ertzan:
    Krunic, Zaijc, Under, Caglar that useless there is put the incompetent
    Ertzan Ertzan: Krunic, Zaijc, Under, Caglar that useless there is put the incompetent