Update generate_readme.py script
Browse files- generate_readme.py +11 -1
generate_readme.py
CHANGED
|
@@ -51,14 +51,24 @@ This dataset is the index for a project to build a complete text corpus of Magic
|
|
| 51 |
|
| 52 |
## Dataset structure
|
| 53 |
|
| 54 |
-
The dataset is a single CSV file, `links.csv`, with
|
| 55 |
|
| 56 |
- `url`: The full URL found in the Internet Archive CDX index.
|
|
|
|
|
|
|
| 57 |
|
| 58 |
## Collection method
|
| 59 |
|
| 60 |
URLs were pulled using the Internet Archive CDX API. The crawler targeted specific domains known to host Magic: The Gathering content, searching for all unique URLs indexed by the Wayback Machine.
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
## License
|
| 63 |
|
| 64 |
The list of URLs is provided under the Open Data Commons Attribution License (ODC-By). You must follow the terms of service and robots.txt of the source websites if you use these links to download content.
|
|
|
|
| 51 |
|
| 52 |
## Dataset structure
|
| 53 |
|
| 54 |
+
The dataset is a single CSV file, `links.csv`, with the following columns:
|
| 55 |
|
| 56 |
- `url`: The full URL found in the Internet Archive CDX index.
|
| 57 |
+
- `site`: The identifier for the source website (e.g., `mtggoldfish`, `edhrec_articles`).
|
| 58 |
+
- `http_code`: The HTTP status code returned by the Wayback Machine for that URL.
|
| 59 |
|
| 60 |
## Collection method
|
| 61 |
|
| 62 |
URLs were pulled using the Internet Archive CDX API. The crawler targeted specific domains known to host Magic: The Gathering content, searching for all unique URLs indexed by the Wayback Machine.
|
| 63 |
|
| 64 |
+
This specific snapshot covers URLs indexed between **2025 and 2026**.
|
| 65 |
+
|
| 66 |
+
To replicate the discovery process, use the provided `fetch.py` script:
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
python fetch.py discover --from-year 2025 --to-year 2026
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
## License
|
| 73 |
|
| 74 |
The list of URLs is provided under the Open Data Commons Attribution License (ODC-By). You must follow the terms of service and robots.txt of the source websites if you use these links to download content.
|