Add id to parser html element?

I'm going to write a tool that extracts data from soccerway.com. In fact I'm going to create a sort of historical.

As you can see the data is grouped into football seasons, so there would be database 2015/2016, 2016/2017 and so on. What I do then is take the data, enter them in the database and then run a cron job that goes to update these values. The problem is that I should have a key recognition on them to upgrade or something. I currently have in mind only the operation of the parser, but I do not know how I can create a key for each item parserd. For example, take the league standings from the link that I have provided you, how can I (once entered data), in the future, check with cronjob that there are updates and replace the values? I know that to see if there are updates could exploit the field lastUpdate header and save it somewhere in the database, then the cronjob going to check this field for each league. The most important point, however, is to recognize the values ​​to be updated because I have no id to reference.

Some idea?

Answers


While parsing the data, you can store date & time of the forthcoming matches and set the script to run then (the won't be updates in the meanwhile). If you directly parse HTML code it shouldn't take long.


Need Your Help

Selection of a property in a compartment shape

visual-studio visual-studio-2012 dsl dsl-tools

I have a problem with selecting a property on a compartmentshape of a dsl. What I want to do is: