Skip to content

Commit 000b8cc

Browse files
committed
Update workshop index
1 parent a4a51f4 commit 000b8cc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/Fetching XML data/Dump files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- This will download the compressed file: `dewiktionary-latest-pages-articles-multistream.xml.bz2`.
1111
- The file is stored in this directory: [https://dumps.wikimedia.org/dewiktionary/latest/](https://dumps.wikimedia.org/dewiktionary/latest/).
1212

13-
### Older Versions
13+
### Latest (alternative way) and Older Versions
1414

1515
- If you need an older version of the Wiktionary dump, visit this directory: [https://dumps.wikimedia.org/dewiktionary/](https://dumps.wikimedia.org/dewiktionary/).
1616
- To download a specific version:

docs/Parsing Wikitext/Parsing Wikitext.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def template_to_dict(template):
225225
for p in template.params}
226226
return params
227227
```
228+
Now, let us see the result.
228229

229230
```python exec="1" source="tabbed-left" result="pycon" session="wiki"
230231
params = template_to_dict(wortart_tpl)

pycon_at/generate_notebooks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def split_code_text(file):
8181
code_list.append(('code', code))
8282
else:
8383
text = s.replace('[TOC]', '')
84+
text = text.replace(':fontawesome-regular-face-smile:', '')
8485
text = text.replace('=== "Source"', '')
8586
text = text.replace('=== "Result"', '')
8687
text = re.sub(PYCON, '', text, flags=re.DOTALL)
@@ -124,8 +125,8 @@ def modified_code_text(file):
124125
125126
"""
126127
code ="""import urllib
127-
XML_FILE = "playground_dump_20241020.xml"
128-
DICT_PATH = ""
128+
XML_FILE = Path("playground_dump_20241020.xml")
129+
DICT_PATH = Path("")
129130
130131
url = "https://raw.githubusercontent.com/lennon-c/pycon_at/refs/heads/main/data/playground_dump_20241020.xml"
131132

0 commit comments

Comments
 (0)