I gang

PHP - HTML PARSER - NO REGEX

I need an HTML parser function built to grab all the game numbers, odds, juice, and post values for each game.

HERE IS A SAMPLE OF THE HTML. SOMETIMES THE ODDS "+5&frac12;-105" will be on the right of the <input> tag, sometimes it will be on the left. SOMETIMES THE INPUT NAME will be different, SOMETIMES THE VALUE WILL BE DIFFERENT. IT needs to be able to associate the correct <inputs> with the game number.

</td><td style="vertical-align: middle; text-align: left;" class="TrGameOddHm">554</td><td colspan="2" style="vertical-align: middle; text-align: left;" class="TrGameOddHm">MCNEESE STATE</td><td style="vertical-align: middle; text-align: right;" class="TrGameOddHm">+5&frac12;-105<INPUT TYPE="checkbox" NAME="text_" VALUE="1_629479_5.5_-105"></td><td style="vertical-align: middle; text-align: right;" class="TrGameOddHm">u142&frac12;-105<INPUT TYPE="checkbox" NAME="text_" VALUE="3_629479_142.5_-105"></td><td style="vertical-align: middle; text-align: right;" class="TrGameOddHm">+185<INPUT TYPE="checkbox" NAME="text_" VALUE="5_629479_0_185"></td></tr><tr>

I can provide more sample pages if needed from other sites. The goal of this is to create a universal HTML parser to grab the game data and post values for each game identified by the game/rotation number.

THIS IS WHY I DONT WANT REGEX TO BE USED TO PARSE HTML.

[url removed, login to view]

SEE ATTACHED. THE FUNCTION SHOULD TAKE IN A VARIABLE WITH THE HTML IN IT. I AM ALREADY USING CURL TO FETCH THE PAGE.

Færdigheder: PHP

Se mere: php html parser, html parser php, php regex html tag, self html 5, regex is, regex c, php tags, php style, input html 5, html 5 xhtml, html 5 checkbox, html 5 align, c++ parse html 5, php regex parse, php regex html parse, regex &, php create function, sites html 5, text inputs, Regex, php regex, php html, parse html, parse an html, juice

Om arbejdsgiveren:
( 35 bedømmelser ) Dallas, United States

Projekt-ID: #985919

Tildelt til:

naumanrandhawa

Hi, Please check pmb for details.

$50 USD på 1 dag
(134 bedømmelser)
7.1

3 freelancere byder i gennemsnit $67 for dette job

muhammadghasan

hi, please check your PMB, thanks

$100 USD in 3 dage
(21 bedømmelser)
4.9
vunv

Check your [url removed, login to view]

$50 USD på 1 dag
(28 bedømmelser)
4.6