DGCA custom feeds #92

Open
opened 2022-01-19 13:08:13 +00:00 by lucidiot · 0 comments
Owner

Two feeds in English, one for accidents and one for incidents, from the indian civil aviation.

They seem to use some CMS that just does POST requests to get some inner HTML. The original web pages listing the reports are here:

Both pages seem to do a POST request:

curl 'https://www.dgca.gov.in/digigov-portal/scan' -X POST --data-raw 'screenId=10000001&classification=&actionVal=viewApplicationDtlsReq&ruleBookId=500005&attr=AccidentReports'

curl 'https://www.dgca.gov.in/digigov-portal/scan' -X POST --data-raw 'screenId=10000001&classification=&actionVal=viewApplicationDtlsReq&ruleBookId=500006&attr=IncidentReports'

The POST requests return tables with links that use data-url attributes to store strange "dynamicPdf" URLs such as dynamicPdf/150901638. Those should be turned into https://www.dgca.gov.in/digigov-portal/Upload?flag=iframeAttachView&attachId=150901638.

Two feeds in English, one for accidents and one for incidents, from the indian civil aviation. They seem to use some CMS that just does POST requests to get some inner HTML. The original web pages listing the reports are here: * Accidents: https://www.dgca.gov.in/digigov-portal/?dynamicPage=AccidentReports/500005/0/viewApplicationDtlsReq * Incidents: https://www.dgca.gov.in/digigov-portal/?dynamicPage=IncidentReports/500006/0/viewApplicationDtlsReq Both pages seem to do a POST request: ``` curl 'https://www.dgca.gov.in/digigov-portal/scan' -X POST --data-raw 'screenId=10000001&classification=&actionVal=viewApplicationDtlsReq&ruleBookId=500005&attr=AccidentReports' curl 'https://www.dgca.gov.in/digigov-portal/scan' -X POST --data-raw 'screenId=10000001&classification=&actionVal=viewApplicationDtlsReq&ruleBookId=500006&attr=IncidentReports' ``` The POST requests return tables with links that use `data-url` attributes to store strange "dynamicPdf" URLs such as `dynamicPdf/150901638`. Those should be turned into `https://www.dgca.gov.in/digigov-portal/Upload?flag=iframeAttachView&attachId=150901638`.
lucidiot added the
feed
label 2022-01-19 13:08:13 +00:00
Sign in to join this conversation.
No description provided.