Platform
Resources
Pricing
Sign in
Contact us
PAC
I explore Wikidata and Wikipedia using Observable notebooks.
Workspace
Fork
Public
How to
By
PAC
Edited
Aug 18, 2022
How to
Hello, API Humaniki
Drawing the Adventures of Tintin character network
Hello Created pages API
How to search Wikipedia articles from Observable.
How to get Wikidata claims from Wikipedia sitelinks using Wikidata API ?
How-to : Passing arguments in the url of the notebook
Dorling cartogram using Bertin.js and Wikidata
Choose a wikipedia version
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
get_pagescreated
=
async
function
(
{
username
,
wikipedia
,
offset
=
""
}
)
{
return
d3
.
json
(
"https://xtools.wmflabs.org/api/user/pages/"
+
wikipedia
+
"/"
+
username
+
"/0/noredirects/live///"
+
offset
)
;
}
Insert cell
get_pagescreated
(
{
username
:
"Philippe rogez"
,
wikipedia
:
"fr.wikipedia.org"
,
offset
:
""
}
)
Insert cell
Insert cell
allpagescreated
=
{
let
result
=
[
]
;
let
offset
=
""
;
while
(
offset
!==
undefined
)
{
let
data
=
await
get_pagescreated
(
{
username
:
username
,
wikipedia
:
wikipedia
,
offset
:
offset
}
)
;
offset
=
data
.
continue
;
result
=
result
.
concat
(
aq
.
from
(
Object
.
values
(
data
.
pages
)
)
)
;
yield
result
;
}
return
result
;
}
Insert cell
df_pagescreated
=
allpagescreated
[
0
]
.
union
(
allpagescreated
)
Insert cell
Inputs
.
table
(
df_pagescreated
)
Insert cell
Insert cell
import
{
aq
,
op
}
from
"@uwdata/arquero"
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
username
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
wikipedia
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
get_pagescreated
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
allpagescreated
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
df_pagescreated
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML