BharatSahAIyak / upcar-advisory

0 stars 0 forks source link

bug: failing github actions #3

Open techsavvyash opened 2 weeks ago

rachitavya commented 1 week ago

The scraper() function which returns download_url for the pdf is giving none as the download url for the PDF. Thus this is the behavior. Need to so error handling there so that when we don't even get a download link to start scraping PDF, we will just stop the process.

Connection times out in actions when we try to scrape the download_url in scraper() function.

HTTPSConnectionPool(host='upcar.up.gov.in', port=443): Max retries exceeded with url: /en/page/advisory (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8d1fbe53a0>, 'Connection to upcar.up.gov.in timed out. (connect timeout=None)'))