Upcoming Metal Concerts
Collect upcoming metal concerts and festivals worldwide via concerts-metal.com.
First run
On first run, skill-config.json is created with default settings. The default country is Spain (ES). Tell the user this and ask them which country they'd like to use. To see all supported country codes, run:
CODEBLOCK0
Then update country in {baseDir}/skill-config.json to the user's chosen code before collecting.
Usage
Run the collector to scrape and accumulate concert data into data/concerts.json:
CODEBLOCK1
The --country flag overrides the config for a single run without changing it:
CODEBLOCK2
Re-running merges new concerts without duplicates and flags previously-seen future concerts that disappear from the source as potentially cancelled. Each record contains date, artists, venue, city, url, discovered_at, and status ("active" or "cancelled").
Changing settings
All settings live in {baseDir}/skill-config.json:
CODEBLOCK3
| Key | What it does | How to change |
|---|
| INLINECODE15 | ISO country code to scrape. | Set to any code from --list-countries (e.g. "DE", "US", "GB"). |
| INLINECODE20 |
How many days ahead to look for concerts. | Set to any positive integer (e.g.
90 for ~3 months,
365 for a year). |
When the user asks to change their country or lookahead window, edit the relevant key in {baseDir}/skill-config.json directly.
Data files
All data lives in data/ (gitignored):
- -
concerts.json — accumulated concert records
Notes
- - No API key required. Data is sourced from concerts-metal.com broadcast pages.
- Coverage is excellent for metal, punk, hardcore, and adjacent genres across 50+ countries.
即将举行的金属演唱会
通过 concerts-metal.com 收集全球即将举行的金属演唱会及音乐节信息。
首次运行
首次运行时,将使用默认设置创建 skill-config.json。默认国家为西班牙(ES)。 请告知用户此信息,并询问他们希望使用哪个国家。要查看所有支持的国家代码,请运行:
bash
python3 {baseDir}/scripts/events.py --list-countries
然后在收集前,将 {baseDir}/skill-config.json 中的 country 更新为用户选择的代码。
使用方法
运行收集器,将演唱会数据抓取并累积到 data/concerts.json 中:
bash
python3 {baseDir}/scripts/events.py
--country 标志可在单次运行时覆盖配置,而无需更改配置本身:
bash
python3 {baseDir}/scripts/events.py --country DE
重新运行时会合并新的演唱会信息,不会产生重复记录,并将之前已收录但现已从源站消失的未来演唱会标记为可能已取消。每条记录包含 date(日期)、artists(艺人)、venue(场馆)、city(城市)、url(链接)、discovered_at(发现时间)和 status(状态,值为 active 或 cancelled)。
更改设置
所有设置均位于 {baseDir}/skill-config.json 中:
json
{
country: ES,
concert_days: 200
}
| 键 | 功能 | 修改方法 |
|---|
| country | 要抓取的 ISO 国家代码。 | 设置为 --list-countries 中的任意代码(例如 DE、US、GB)。 |
| concert_days |
向前查找演唱会的天数。 | 设置为任意正整数(例如 90 表示约3个月,365 表示一年)。 |
当用户要求更改国家或查找时间窗口时,直接在 {baseDir}/skill-config.json 中编辑相应键值。
数据文件
所有数据均存储在 data/ 目录下(已被 git 忽略):
- - concerts.json — 累积的演唱会记录
备注
- - 无需 API 密钥。数据来源于 concerts-metal.com 的广播页面。
- 覆盖范围广泛,涵盖 50 多个国家的金属、朋克、硬核及相邻音乐类型。