iterapi/iterapi.py
def downloadSemResult(self, sem):
        """
        Gets result pdf downloaded

        self.result_path-> str # path to the store the Result pdf
        """
        payload = {"stynumber": str(sem), "publish": "Y"}

        response = requests.post(
            Student.RESULTDOWNLOAD_URL,
            data=str(payload),
            headers=Student.HEADERS,
            cookies=self.cookies)

        if response.status_code == 200:
            try:
                self.result_path = self.regdno + "_sem_" + str(sem) + ".pdf"
                with open(self.result_path, 'wb') as f:
                    f.write(response.content)
            except JSONDecodeError:
                print("Invalid Semester")
                raise Exception("Invalid Semester")
            except Exception as e:
                raise e
        else:
            print("Cannot fetch Results for semester:" +
                  str(sem) + ".", response.status_code)
        return None

        Gets result pdf downloaded

        self.result_path-> str # path to the store the Result pdf
        
Gets result pdf downloaded
self.result_path-> str # path to the store the Result pdf
Gets result pdf downloaded self . result_path - > str # path to the store the Result pdf
def downloadSemResult(self, sem):
        payload = {"stynumber": str(sem), "publish": "Y"}
        response = requests.post(
            Student.RESULTDOWNLOAD_URL,
            data=str(payload),
            headers=Student.HEADERS,
            cookies=self.cookies)
        if response.status_code == 200:
            try:
                self.result_path = self.regdno + "_sem_" + str(sem) + ".pdf"
                with open(self.result_path, 'wb') as f:
                    f.write(response.content)
            except JSONDecodeError:
                print("Invalid Semester")
                raise Exception("Invalid Semester")
            except Exception as e:
                raise e
        else:
            print("Cannot fetch Results for semester:" +
                  str(sem) + ".", response.status_code)
        return None
def downloadSemResult ( self , sem ) : payload = { "stynumber" : str ( sem ) , "publish" : "Y" } response = requests . post ( Student . RESULTDOWNLOAD_URL , data = str ( payload ) , headers = Student . HEADERS , cookies = self . cookies ) if response . status_code == 200 : try : self . result_path = self . regdno + "_sem_" + str ( sem ) + ".pdf" with open ( self . result_path , 'wb' ) as f : f . write ( response . content ) except JSONDecodeError : print ( "Invalid Semester" ) raise Exception ( "Invalid Semester" ) except Exception as e : raise e else : print ( "Cannot fetch Results for semester:" + str ( sem ) + "." , response . status_code ) return None
Gets result pdf downloaded
self.result_path-> str # path to the store the Result pdf
Gets result pdf downloaded self . result_path - > str # path to the store the Result pdf
"""
        Gets result pdf downloaded

        self.result_path-> str # path to the store the Result pdf
        """
self
sem