Skip to content

Instantly share code, notes, and snippets.

@scrapehero
Last active September 29, 2024 13:51
Show Gist options
  • Save scrapehero/0b6e9ea30c06ae3e8b35a9e48bff98c8 to your computer and use it in GitHub Desktop.
Save scrapehero/0b6e9ea30c06ae3e8b35a9e48bff98c8 to your computer and use it in GitHub Desktop.
Sitemap to extract details of fixtures of England's premier league from the top bookmakers using webscraper.io chrome extension
{
"_id":"oddsportal",
"startUrl":[
"https://www.oddsportal.com/soccer/england/premier-league/"
],
"selectors":[
{
"id":"match",
"type":"SelectorLink",
"parentSelectors":[
"_root"
],
"selector":"td.name a",
"multiple":true,
"delay":0
},
{
"id":"odds",
"type":"SelectorTable",
"parentSelectors":[
"match"
],
"selector":"div.table-container:nth-of-type(1) table.table-main",
"multiple":true,
"columns":[
{
"header":"Bookmakers",
"name":"Bookmakers",
"extract":true
},
{
"header":"1",
"name":"Home Odds",
"extract":true
},
{
"header":"X",
"name":"Draw Odds",
"extract":true
},
{
"header":"2",
"name":"Away Odds",
"extract":true
},
{
"header":"Payout",
"name":"Payout",
"extract":true
}
],
"delay":0,
"tableDataRowSelector":"tbody tr",
"tableHeaderRowSelector":"thead tr"
},
{
"id":"date",
"type":"SelectorText",
"parentSelectors":[
"match"
],
"selector":"p.date",
"multiple":false,
"regex":"(?<=\\,)(.*?)(?=,)",
"delay":0
},
{
"id":"time",
"type":"SelectorText",
"parentSelectors":[
"match"
],
"selector":"p.date",
"multiple":false,
"regex":".{5}$",
"delay":0
}
]
}
@Mar-tek
Copy link

Mar-tek commented Jan 26, 2021

can you help by making it take only from 2 bookmakers: bet365 and unibet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment