Skip to content

Commit b643efa

Browse files
committed
Download: Remove API authentication and versioning
We only require public information.
1 parent 0bef5d3 commit b643efa

File tree

5 files changed

+6
-39
lines changed

5 files changed

+6
-39
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,33 +48,26 @@ Built for transparency. Designed for reuse. Optimized for EuroPython.
4848

4949
You can update the event year or shortname in [`src/config.py`](src/config.py).
5050

51-
Also, create a `.env` file in the project root and set:
52-
53-
```env
54-
PRETALX_TOKEN=your_api_token_here
55-
```
56-
57-
(Yes, Pretalx has rate limits. Please be nice. 🤪)
58-
5951
---
6052

6153
## 📦 Usage
6254

63-
- Run the **entire pipeline**:
64-
```bash
65-
make all
66-
```
67-
6855
- Run only the **download step**:
6956
```bash
7057
make download
7158
```
59+
(Pretalx has rate limits, please be nice. 🤪)
7260

7361
- Run only the **transformation step**:
7462
```bash
7563
make transform
7664
```
7765

66+
- Run the **entire pipeline** (download and transform):
67+
```bash
68+
make all
69+
```
70+
7871
- (Optional) **Exclude components**:
7972
```bash
8073
make all EXCLUDE="schedule youtube"

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ classifiers = [
1111
]
1212
dependencies = [
1313
"pydantic>=2.11.2",
14-
"python-dotenv>=1.1",
1514
"python-slugify>=8.0.4",
1615
"requests>=2.32.3",
1716
"tqdm>=4.67.1",

src/config.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import os
21
from pathlib import Path
32

4-
from dotenv import load_dotenv
5-
63

74
class Config:
85
event = "europython-2025"
@@ -12,13 +9,3 @@ class Config:
129
project_root = Path(__file__).resolve().parents[1]
1310
raw_path = Path(f"{project_root}/data/raw/{event_dir_name}")
1411
public_path = Path(f"{project_root}/data/public/{event_dir_name}")
15-
16-
@classmethod
17-
def token(cls) -> str:
18-
dotenv_exists = load_dotenv(cls.project_root / ".env")
19-
if (token := os.getenv("PRETALX_TOKEN")) and not dotenv_exists:
20-
print("Please prefer .env file to store your token! It's more secure!")
21-
return token
22-
elif token is None:
23-
raise ValueError("Please set your token in .env file!")
24-
return token

src/download.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
headers = {
2222
"Accept": "application/json, text/javascript",
23-
"Authorization": f"Token {Config.token()}",
2423
"Pretalx-Version": Config.api_version,
2524
}
2625

uv.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)