Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
json.php API - Get "publishers" Objects
How to get "publishers" objects with Library Genesis API?
✍: FYIcenter.com
Here are some examples on how to get "publishers" objects with Library Genesis API.
Get the "publishers" object with p_id=1 in pretty JSON format. That object does not exist.
fyicenter$ curl 'https://libgen.lc/json.php?object=p&ids=1' | python -m json.tool []
Get the first "publishers" object. It's p_id is 2 and name is in Unicode. There is no "editions" objects associated with this publisher.
fyicenter$ curl 'https://libgen.lc/json.php?object=p&id_start=1&limit2=1' \
| python -m json.tool
{
"2": {
"add_info": "",
"commentary": "",
"date_end": null,
"date_start": null,
"editable": "1",
"org_type": "",
"time_added": "2020-07-29 16:44:56",
"time_last_modified": "2021-06-16 21:39:32",
"title": "\u041b\u043e\u0440\u0438",
"visible": ""
}
}
Get the first "publishers" object added after 2022-01-01. Still no "editions" objects associated with this publisher.
fyicenter$ curl 'https://libgen.lc/json.php?object=p&mode=last&timefirst=2022-01-01&limit2=1' \
| python -m json.tool
{
"43867": {
"add_info": "",
"commentary": "",
"date_end": null,
"date_start": null,
"editable": "0",
"org_type": "",
"time_added": "2022-03-10 14:09:21",
"time_last_modified": "2022-03-10 14:09:21",
"title": "Rectum Errrectum - Catamite's Anal Revenge",
"visible": ""
}
}
Get the "publishers" object with p_id=19308. You see many "editions" objects associated with this publisher.
fyicenter$ curl 'https://libgen.lc/json.php?object=p&ids=19308' | python -m json.tool
{
"19308": {
"add_info": "",
"commentary": "31582",
"date_end": null,
"date_start": "1869-00-00",
"editable": "1",
"editions": {
"1895722": {
"title": "Nature, September 15, 2011"
},
"1904401": {
"title": "Nature, October 6, 2011"
},
"1906568": {
"title": "Nature Physics, March 2015"
},
"1909535": {
"title": "Nature, January 12, 2012"
},
...
}
}
}
See next tutorials on how to get "editions" objects.
2022-09-12, ∼2002🔥, 0💬
Popular Posts:
How do I know what cookies a Website is sending to Mozilla Firefox 2.0? When you are visiting a Webs...
What is a slide master in PowerPoint? A slide master is a set of slide layouts defined to help you c...
How to unzip an XPS (XML Paper Specification, .xps) file? According to Microsoft documentation, an ....
How to install Fitbit Bluetooth Dongle on my Windows computer? Fitbit device comes with a Bluetooth ...
How to apply a character style in Microsoft Word? I want to emphasize few words in a paragraph. Appl...