I managed to build a query tool that iterates through a list of fighter names to obtain their unique url on bestfightodds.com.
However, now I am in conflict regarding how I can iterate a fighter's website to search the closing odds given a certain fighter's opponent.
For example, say I have Jon Jones' unique fighter page - https://www.bestfightodds.com/fighters/Jon-Jones-819, and an opponent (for example we will choose Daniel Cormier). I would like to return a list of Jon Jones' closing odds for the fights: [-310, -192].
The issue is that I don't have an idea as to how I can link together the opponent's html text to find the respective odds.
I tried iterating through the html text, but was not able to link the fighter name to their respective odds.
You can first find all
tdthat saysUFC 182: Jones vs. Cormierand such. Then find it's parent which is class withmain-rowif you see site. Then do normalfind_allorselect_oneto find the text.OR
EDIT:
using previous_sibling to select elements and text inside