Skip to content

Commit 07a3d4b

Browse files
committed
Updated README with all Wikidata results
1 parent 0fe5ef7 commit 07a3d4b

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

README.rst

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,63 +41,70 @@ Example
4141
4242
>>> import wptools
4343
44+
4445
.. code-block:: python
4546
4647
>>> page = wptools.page('Gandhi')
4748
49+
4850
.. code-block:: python
4951
5052
>>> page.get()
5153
en.wikipedia.org (query) Gandhi
5254
en.wikipedia.org (parse) 19379
5355
www.wikidata.org (wikidata) Q1001
54-
www.wikidata.org (claims) Q5|Q129286|Q6512732|Q668
56+
www.wikidata.org (labels) Q1280678|P535|Q18338317|P434|Q1860|P376...
57+
www.wikidata.org (labels) P18|P19|P1066|P509|P345|Q16382|P1006|P3...
58+
www.wikidata.org (labels) Q2140674|Q1282294|Q21200566|P409|Q26490...
59+
www.wikidata.org (labels) P3417|P4431|P2949|P69|Q129286|Q9441|P42...
5560
en.wikipedia.org (restbase) /page/summary/Mahatma_Gandhi
5661
en.wikipedia.org (imageinfo) File:Portrait Gandhi.jpg|File:MKGandhi.jpg
5762
Mahatma Gandhi (en) data
5863
{
5964
aliases: <list(10)> M K Gandhi, Mohandas Gandhi, Bapu, Gandhi, M...
60-
claims: <dict(4)> Q5, Q129286, Q6512732, Q668
65+
claims: <dict(106)> P646, P535, P906, P434, P648, P3762, P1273, ...
6166
description: <str(67)> pre-eminent leader of Indian nationalism ...
62-
exhtml: <str(1064)> <p>Mahātmā <b>Mohandas Karamchand Gandhi</b>...
63-
exrest: <str(896)> Mahātmā Mohandas Karamchand Gandhi (; Hindust...
64-
extext: <str(2985)> Mahātmā **Mohandas Karamchand Gandhi** (; Hi...
65-
extract: <str(3212)> <p>Mahātmā <b>Mohandas Karamchand Gandhi</b...
67+
exhtml: <str(1144)> <p>Mahātmā <b>Mohandas Karamchand Gandhi</b>...
68+
exrest: <str(907)> Mahātmā Mohandas Karamchand Gandhi (; Hindust...
69+
extext: <str(2999)> Mahātmā **Mohandas Karamchand Gandhi** ( ; H...
70+
extract: <str(3292)> <p>Mahātmā <b>Mohandas Karamchand Gandhi</b...
6671
image: <list(6)> {'kind': 'query-pageimage', u'descriptionshortu...
6772
infobox: <dict(25)> known_for, other_names, image, signature, bi...
73+
iwlinks: <list(10)> https://biblio.wiki/wiki/Mohandas_K._Gandhi,...
6874
label: Mahatma Gandhi
69-
length: 264,127
70-
links: <list(10)> https://biblio.wiki/wiki/Mohandas_K._Gandhi, h...
75+
labels: <dict(163)> Q1280678, P535, Q18338317, Q131149, P434, Q1...
76+
length: 262,058
77+
links: <list(500)> 10 Janpath, 14th Dalai Lama, 1915 Singapore M...
7178
modified: <dict(2)> wikidata, page
7279
pageid: 19379
73-
parsetree: <str(333405)> <root><template><title>Redirect</title>...
74-
properties: <dict(7)> P27, P569, P345, P18, P910, P31, P570
75-
random: Catlins River
80+
parsetree: <str(330951)> <root><template><title>Redirect</title>...
81+
random: Salt
7682
redirected: <list(1)> {u'to': u'Mahatma Gandhi', u'from': u'Gandhi'}
7783
redirects: <list(53)> {u'ns': 0, u'pageid': 55342, u'title': u'M...
84+
requests: <list(9)> query, parse, wikidata, labels, labels, labe...
7885
title: Mahatma_Gandhi
7986
url: https://en.wikipedia.org/wiki/Mahatma_Gandhi
8087
url_raw: https://en.wikipedia.org/wiki/Mahatma_Gandhi?action=raw
81-
watchers: 1,732
88+
watchers: 1,770
8289
what: human
8390
wikibase: Q1001
84-
wikidata: <dict(7)> category, death, citizenship, image, instanc...
91+
wikidata: <dict(105)> Geni.com profile ID (P2600), National Libr...
8592
wikidata_url: https://www.wikidata.org/wiki/Q1001
86-
wikitext: <str(262663)> {{Redirect|Gandhi}}{{pp-move-indef}}{{pp...
93+
wikitext: <str(260607)> {{Redirect|Gandhi}}{{pp-move-indef}}{{pp...
8794
}
8895
96+
8997
.. code-block:: python
9098
9199
>>> page.get_more()
92-
en.wikipedia.org (querymore) Mahatma Gandhi
100+
en.wikipedia.org (querymore) Gandhi
93101
Mahatma Gandhi (en) data
94102
{
95-
categories: <list(67)> Category:1869 births, Category:1948 death...
103+
categories: <list(68)> Category:1869 births, Category:1948 death...
96104
contributors: 2,608
97105
files: <list(52)> File:Aum Om red.svg, File:Commons-logo.svg, Fi...
98106
languages: <list(167)> {u'lang': u'af', u'title': u'Mahatma Gand...
99-
title: Mahatma Gandhi
100-
views: 21,490
107+
views: 24,565
101108
}
102109
103110

0 commit comments

Comments
 (0)