def main(court_name, start_date, end_date): logs.initialize_logger("Chhattisgarh") if int((datetime.datetime.strptime(str(start_date), "%d/%m/%Y")).strftime('%Y')) < 2012: return judis.main(court_name, 1, start_date, end_date) else: start_date = (datetime.datetime.strptime(str(start_date), "%d/%m/%Y")).strftime('%Y') end_date = (datetime.datetime.strptime(str(end_date), "%d/%m/%Y")).strftime('%Y') return request_data(court_name, start_date, end_date)
def start_pdf(): logs.initialize_logger("PDF") court_name = request.form['court_name'] update_query( "UPDATE Tracker_pdf SET status='IN_RUNNING', emergency_exit=false, Name='" + court_name + "', No_Files=0 WHERE 1") court_pdfname(court_name) download_pdf_to_bucket(court_name) return '', 200
def main(court_name, start_date, end_date): logs.initialize_logger("HIMACHAL") r = requests.request('GET', base_url + 'coram-reported-query.php', proxies=proxy_dict) headers = { 'Content-Type': "application/x-www-form-urlencoded", 'Cookie': 'PHPSESSID=' + str(requests.utils.dict_from_cookiejar(r.cookies)['PHPSESSID']), 'Cache-Control': "no-cache", } return request_data(court_name, headers, start_date, end_date)
def main(court_name, bench, start_date, end_date): logs.initialize_logger("Customs_Excise_And_Service_Tax_Appellate_Tribunal") r = requests.request('GET', base_url + '/index.php', proxies=proxy_dict) headers = { 'Content-Type': "application/x-www-form-urlencoded", 'Cache-Control': "no-cache", 'Cookie': 'PHPSESSID=' + str(requests.utils.dict_from_cookiejar(r.cookies)['PHPSESSID']), } return request_data(court_name, bench, headers, start_date, end_date)
def main(start_date, end_date): logs.initialize_logger("Manipur") r = requests.request('GET', base_url + "/ByDate.php", proxies=proxy_dict) headers = { 'Content-Type': "text/html", 'Cookie': 'PHPSESSID=' + str(requests.utils.dict_from_cookiejar(r.cookies)['PHPSESSID']), 'Cache-Control': "no-cache", } return request_data(headers, start_date, end_date)
def main(court_name, start_date, end_date): logs.initialize_logger("KARNATAKA") if int(start_date) == 2014 or int(end_date) == 2014: request_data(court_name, '2014', '2014') request_data_old(court_name, '2014', '2014') if int(start_date) < 2014 < int(end_date): request_data_old(court_name, str(start_date), '2014') return request_data(court_name, '2014', str(end_date)) elif int(start_date) > 2014: return request_data(court_name, str(start_date), str(end_date)) elif int(end_date) < 2014: return request_data_old(court_name, str(start_date), str(end_date))
def main(court_name, start_date, end_date): logs.initialize_logger("MADHYA") r = requests.request('GET', base_url + '/captcha/captcha.php', proxies=proxy_dict) headers = { 'Content-Type': "application/x-www-form-urlencoded", 'X-Requested-With': "XMLHttpRequest", 'Cookie': 'PHPSESSID=' + str(requests.utils.dict_from_cookiejar(r.cookies)['PHPSESSID']), 'Cache-Control': "no-cache", } return request_data(court_name, headers, start_date, end_date)
def main(court_name, dc, start_date, end_date): logs.initialize_logger("LOBIS") r = requests.request('GET', base_url + '/juddt.php', proxies=proxy_dict) headers = { 'Content-Type': "application/x-www-form-urlencoded", 'Cache-Control': "no-cache", 'Cookie': 'PHPSESSID=' + str(requests.utils.dict_from_cookiejar(r.cookies)['PHPSESSID']), } payload = "rb=1&selhc=" + str(dc) + "&Submit=Submit" requests.request("POST", base_url, data=payload, headers=headers, proxies=proxy_dict) return request_data(court_name, dc, headers, start_date, end_date)
def main(court_name, start_date, end_date): logs.initialize_logger("Appellate_Tribunal") return request_data(court_name, start_date, end_date)
def main(court_name, bench_code, start_date, end_date): logs.initialize_logger("JUDIS") return request_data(court_name, bench_code, start_date, end_date)
def main(court_name, start_date, end_date): logs.initialize_logger("NAGALAND") return request_data(court_name, start_date, end_date)
def main(court_name, bench, start_date, end_date): logs.initialize_logger("National_Company_Law_Tribunal") return request_data(court_name, bench, int(start_date), int(end_date))
def main(court_name, bench, start_date, end_date): logs.initialize_logger("Income_Tax_Appellate") return request_data(court_name, bench, start_date, end_date)
def main(court_name, start_date, end_date): logs.initialize_logger("Intellectual_Property_Appellate") return request_data(court_name, start_date, end_date)
def main(court_name, court_id, start_date, end_date): logs.initialize_logger("CALCUTTA") return request_data(court_name, court_id, start_date, end_date)
def main(court_name, start_date, end_date): logs.initialize_logger("Gauhati") return request_data(court_name, start_date, end_date)
def main(court_name, m_sideflg, start_date, end_date): logs.initialize_logger("BOMBAY") return request_data(court_name, m_sideflg, start_date, end_date)