Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Commit

Permalink
bwin FRA ligue_1 and ligue_2
Browse files Browse the repository at this point in the history
  • Loading branch information
S1M0N38 committed Aug 1, 2019
1 parent f02c0c4 commit d1487ae
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
55 changes: 55 additions & 0 deletions aao/spiders/tables/bwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,61 @@
"teams": null
}
}
},
"france": {
"name": "france",
"leagues": {
"ligue_1": {
"name": "4131",
"teams": {
"Paris Saint-Germain": "PSG",
"Olympique Lyonnais": "Lyon",
"Olympique de Marseille": "Marseille",
"OSC Lille": "Lille",
"AS Monaco": "Monaco",
"OGC Nice": "Nice",
"AS Saint-Etienne": "Saint-Etienne",
"Stade Rennais": "Rennes",
"Girondins de Bordeaux": "Bordeaux",
"Montpellier HSC": "Montpellier",
"FC Nantes": "Nantes",
"Stade Reims": "Reims",
"Racing Strasbourg": "Strasbourg",
"Nimes Olympique": "Nimes Olympique",
"FC Metz": "Metz",
"Angers SCO": "Angers",
"Toulouse FC": "Toulouse",
"Stade Brestois 29": "Brest",
"Amiens SC": "Amiens",
"Dijon FCO": "Dijon"
}
},
"ligue_2": {
"name": "ligue_2",
"teams": {
"AJ Auxerre": "Auxerre",
"Le Mans FC": "Le Mans",
"Chateauroux": "Chateauroux",
"Rodez Aveyron": "Rodez",
"Grenoble": "Grenoble",
"AC Ajaccio": "AC Ajaccio",
"Le Havre AC": "Le Havre",
"Chamois Niortais FC": "Niort",
"US Orleans": "Orleans",
"FC Chambly": "Chambly FC",
"Paris FC": "Paris FC",
"FC Sochaux Montbeliard": "Sochaux",
"Estac Troyes": "Troyes",
"Clermont Foot": "Clermont",
"Valenciennes FC": "Valenciennes",
"AS Nancy Lorraine": "Nancy",
"RC Lens": "RC Lens",
"EA Guingamp": "Guingamp",
"SM Caen": "Caen",
"FC Lorient": "Lorient"
}
}
}
}
}
}
6 changes: 4 additions & 2 deletions aao/test/spiders/bookmakers/test_bwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
COMPETITIONS = [
# country, _country, league, _league, page_name
['england', 'england', 'premier_league', '46', 'Premier League Betting Odds'],
['england', 'england', 'elf_championship', '3890', 'Championship Betting Odds'],
['england', 'england', 'efl_championship', '3890', 'English Championship Betting Odds'],
['italy', 'italy', 'serie_a', '42', 'Serie A Odds'],
['spain', 'spain', 'la_liga', '16108', 'La Liga Odds'],
['france', 'france', 'ligue_1', '4131', 'Ligue 1 Betting'],
['france', 'france', 'ligue_2', '4132', 'Ligue 2 Betting'],
]


Expand All @@ -22,7 +24,7 @@ def test_soccer(self):

class TestSoccer():

competition = COMPETITIONS[0]
competition = COMPETITIONS[5]

@pytest.fixture(scope='module')
def spider(self):
Expand Down

0 comments on commit d1487ae

Please sign in to comment.