Skip to content

Commit

Permalink
amuselabs: tweak to key-finding regex (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisparker authored Nov 11, 2023
1 parent 19f3d0c commit c1c5849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xword_dl/downloader/amuselabsdownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def fetch_data(self, solver_url):
# But now that might not be the right key, and there's another one
# that we need to try!
# (current as of 10/26/2023)
key_2_order_regex = r'i=(\d+);i<t.length;i\+='
key_2_digit_regex = r't.length\?(\d+)'
key_2_order_regex = r'[a-z]+=(\d+);[a-z]+<[a-z]+.length;[a-z]+\+='
key_2_digit_regex = r'<[a-z]+.length\?(\d+)'

key_digits = [int(x) for x in
re.findall(key_2_digit_regex, res2.text)]
Expand Down

0 comments on commit c1c5849

Please sign in to comment.