DEV Community

Hossein
Hossein

Posted on

Automated Currency & Gold Data Scraper with Python and GitHub Actions

If you ever needed live currency and gold prices from Iran's market for automation or data analysis, this Python project makes it easy.

Navasan Data Scraper is a lightweight tool that:

  • Fetches fiat currency rates and gold/coin prices from Navasan.net
  • Uses Selenium for headless browser automation
  • Handles secure sessions with PHPSESSID cookies
  • Generates CSRF tokens dynamically
  • Saves data as JSON in a structured format
  • Automatically updates every 10 minutes via GitHub Actions

Project Highlights:

  • πŸ’» Python 3.7+ compatible
  • ⚑ Headless Chrome automation
  • πŸ“Š JSON outputs: fiat.json and gold.json
  • πŸ”„ CI workflow for scheduled updates

You can check out the project here: Navasan-API GitHub Repository


Whether you want to integrate live market data into your apps, run analytics, or just experiment with automation, this project is fully open-source and ready to use.

Contributions and feedback are welcome!

Top comments (0)