Python Requests Visa Login Script

Customer: AI | Published: 27.12.2025
Бюджет: 250 $

I need a clean, well-commented Python script that signs in to the Portuguese Visa portal at https://pedidodevistos.mne.gov.pt/VistosOnline/Authentication.jsp by relying solely on the requests library (no Selenium, no headless browsers). Once authenticated, the script should navigate to my Application Status area and automatically download the information shown there to a local file for later processing. Key points for success • Pure HTTP workflow – handle any CSRF token, hidden input, cookie or redirect the site uses and keep the session alive until the status page is fetched. • After login, reach the exact endpoint that displays the application status and capture all returned data (HTML, JSON, or PDF—whatever the site provides) and save it to disk. • Structure the code so credentials can be fed from environment variables or a separate config file, never hard-coded. • Write everything in standard Python 3 with requests (plus BeautifulSoup or lxml if you find them useful for parsing). Deliverables 1. A single .py file containing the working script. 2. A short README explaining required packages, how to provide login details, and the expected output file. 3. Any notes on endpoints discovered or headers required so I can maintain the script later. I will supply test credentials as soon as we start; you can mock yours in the meantime. The project is complete when running python script.py logs in, grabs the status data, and saves it without manual intervention. Automating a login sequence for personal data tracking.