Skip to content

Commit

Permalink
add r to regex string
Browse files Browse the repository at this point in the history
  • Loading branch information
BSalita committed Sep 4, 2024
1 parent afb3602 commit f1632dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acbllib/acbllib.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def extract_club_games(htmls, acbl_url):
df = pd.DataFrame(d[0])
df.insert(0,'Club',cn)
df.insert(1,'EventID','?')
hrefs = [acbl_url+link.get('href')[1:] for link in html_table.find_all('a', href=re.compile("^/club-results/details/\d*$"))]
hrefs = [acbl_url+link.get('href')[1:] for link in html_table.find_all('a', href=re.compile(r"^/club-results/details/\d*$"))]
df.drop('Unnamed: 6', axis=1, inplace=True)
df['ResultID'] = [result.rsplit('/', 1)[-1] for result in hrefs]
df['ResultUrl'] = hrefs
Expand Down

0 comments on commit f1632dc

Please sign in to comment.