Atelparser
A Python library for scraping, parsing, and indexing astronomical telegrams (ATels) into a searchable database.

What it is
atelParser is a specialized Python tool designed for astronomers and researchers. It systematically scrapes content from The Astronomer's Telegram (ATel) website, a critical service for reporting and sharing transient astronomical events. The library downloads these reports as raw HTML and processes them to extract scientifically valuable data, primarily the coordinates and names of individual celestial objects like supernovae and other transients.
Its core functionality automates the laborious task of manually reviewing ATels, making it an essential utility for anyone tracking new astronomical discoveries. The parsed data is organized into indexed MySQL database tables, providing a structured, queryable dataset that researchers can seamlessly integrate into their own projects, analysis pipelines, or alert systems.
Key features include reporting the latest ATel count, an initial bulk download of all historical reports, and subsequent incremental runs to fetch only new or missing ATels. This ensures your local database remains current with the latest observations from the global astronomical community.
The tool is built for developers and data scientists in astronomy. It requires a basic Python setup and configuration of a MySQL database to get started. Its command-line interface and Python API offer flexibility for different use cases, from simple data fetching to complex database management.
What makes atelParser notable is its focus on a very specific, data-rich niche within astrophysics. It solves a clear data ingestion and parsing problem, saving researchers significant time and reducing the potential for human error in data extraction. It is an open-source project hosted on GitHub, with comprehensive documentation available on Read the Docs.
This description was generated by AI from the site's public content and may contain errors.
What you can do there
- Download raw HTML copies of Astronomer's Telegram reports
- Parse ATels to extract celestial coordinates
- Identify and clean the names of transient astronomical objects
- Store parsed data in an indexed MySQL database
- Check the latest total count of published ATels
Who it's for
Astronomers, astrophysics researchers, and data scientists working with astronomical transient data.
Frequently asked questions about atelparser.readthedocs.io
›What is The Astronomer's Telegram (ATel)?
The Astronomer's Telegram is a web-based service that allows astronomers to quickly disseminate information on new and transient astronomical events, such as supernovae or gamma-ray bursts.
›What does atelParser do?
It automatically downloads ATel reports, parses them to extract object names and coordinates, and stores this structured data in a MySQL database for easy querying and analysis.
›Do I need programming skills to use atelParser?
Yes, it is a Python library designed for developers and researchers comfortable with using command-line tools and managing databases.
›How do I get started with atelParser?
You need to install the Python package, set up a MySQL database, and modify the provided settings file with your database connection details before running the download and parsing commands.
›Can atelParser update my database with new ATels?
Yes, after an initial download of all ATels, you can run it periodically to fetch and parse only the newest reports, keeping your database up to date.
›What kind of data does it extract from each ATel?
The parser focuses on identifying and cleaning the names of transient sources, like supernovae, and extracting their celestial coordinates (right ascension and declination).
›Is atelParser free to use?
Yes, it is an open-source project released under the GPL-3.0 license, meaning it is free to use and modify.
