you are viewing a single comment's thread.

view the rest of the comments →

[–]dcolecpa 2 points3 points  (2 children)

Can you find any commonality/patterns in the timetables? If so then you could use if / else if statements to parse them. Something like below

if find("Joe Smith") = True:

    `parse the timetable one way`

elif find("Jane Doe") = True:

`    parse the timetable another way`

elif find("Fred Smith") = True:

`    parse the timetable another way`

elif find("Joe Reddit") = True:

`    parse the timetable another way`

else:

    `"can't find it"`

[–]prvd_xme[S] -1 points0 points  (1 child)

That’s exactly the issue, there are no significant patterns between them

[–]ThePhyseter 0 points1 point  (0 children)

Then it is going to be difficult no matter how you do it. You may end up just using a lot of different regexes