Skip to content

Commit 11242d2

Browse files
authored
Change search zone from 'dsd' to 'lex' in README
Updated the zone parameter from 'dsd' to 'lex' in search examples.
1 parent c41f83e commit 11242d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Outputs: the JSON object
6969
### LEX
7070
| code | Website | Note
7171
| --- | --- | --- |
72-
| `dsd` | https://denstoredanske.lex.dk/ |
72+
| `lex` | https://lex.dk/ | is Den Store Danske/Danmarks Nationalleksikon
7373
| `dlh` | https://dansklitteraturshistorie.lex.dk/ |
7474
| `dbl` | https://biografiskleksikon.lex.dk/ |
7575
| `gtl` | https://teaterleksikon.lex.dk/ |
@@ -125,7 +125,7 @@ Outputs: `Spellemannprisen`
125125
import snldata
126126

127127
R = snldata.SnlSession()
128-
R.search(zone='dsd', query="Python", best=True) #Pick the one with the best rank
128+
R.search(zone='lex', query="Python", best=True) #Pick the one with the best rank
129129
print(R.url)
130130
```
131131
Outputs: `https://denstoredanske.lex.dk/Python`
@@ -141,7 +141,7 @@ If the API returns no results, `.json` will be given a empty list.
141141
import snldata
142142

143143
R = snldata.SnlSession()
144-
R.search(zone='dsd', query="asdadasdasdad", best=True) #Pick the one with the best rank
144+
R.search(zone='lex', query="asdadasdasdad", best=True) #Pick the one with the best rank
145145
print(R.json)
146146
```
147147
Outputs: `{}`
@@ -150,7 +150,7 @@ Outputs: `{}`
150150
import snldata
151151

152152
R = snldata.SnlSession()
153-
R.search(zone='dsd', query="jdfhdskjfhsjkdfhksdfh") #Pick the three best results, but there are none
153+
R.search(zone='lex', query="jdfhdskjfhsjkdfhksdfh") #Pick the three best results, but there are none
154154
R._get(0)
155155
print(R.json)
156156
```

0 commit comments

Comments
 (0)