Using node js & jQuery to get DOM object
Hi guys,
I'm trying to monitor the contests offered by Draftkings to keep people up to date on their latest offerings on my fantasy football site. To do that, I need to capture data from the DraftKings.com/contest-lobby site.
Specifically, in the DOM, their is (what I believe to be) a javascript variable or object named "packagedContests". I believe it is an array of hashes. In other words, you have the primary variable name packagedContests, then you have a child object numbered 0-2000, and each of these child objects has what I believe are attributes tied to them, such as "a", "n", or "id".
What I need to know how to do is select those attributes and get the value from each one. I'll have to iterate though each child, and then I'd like to load them into a mysql or mongo database.
Any suggestions on how to use jQuery coupled with node.js to monitor and keep that data up to date? Thanks in advance!