diff --git a/bday.py b/bday.py index 75c93f1..ba90b74 100644 --- a/bday.py +++ b/bday.py @@ -24,7 +24,8 @@ def get_bday(rollno, start_date, end_date): br["dob"] = single_date.strftime("%d-%m-%Y") response = br.submit() - if len(response.readlines())!=330: + X = response.readlines() + if "Date of Birth does not match" not in X[275]: flag = 0 print single_date.strftime("%d-%m-%Y") break