Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (465)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
json.php API - Get "files" by Modification Date Range
How to get "files" objects with Library Genesis API, json.php, for a given modification date range?
✍: FYIcenter.com
If you want to get all file objects that were modified with a given date range,
you can call the Library Genesis API, json.php, with object=f, mode=modified,
timefirst={date} and timelast={date} parameters.
For example, the following call returns all "files" objects that were modified from 2021-09-02 to 2021-09-04.
fyicenter$ curl 'https://libgen.lc/json.php?object=f&mode=modified&timefirst=2021-09-02&timelast=2021-09-04' | python -m json.tool
{
"94068096": {
"archive_dop_files_flag": "",
"archive_files_count": "0",
"archive_files_pic_count": "0",
"bookmarked": "",
"broken": "",
"c2c": "",
"cleaned": "",
"color": "",
"comics_id": "0",
"commentary": "",
"cover_exists": "0",
"cover_info": "",
"dpi": "",
"editable": "1",
"extension": "pdf",
"fiction_id": "0",
"fiction_rus_id": "0",
"file_create_date": "2000-01-01 05:00:00",
"filesize": "15468989",
"generic": "",
"libgen_id": "0",
"libgen_topic": "a",
"locator": "",
"magz_id": "0",
"md5": "a01c27cbea72974c5d6b6b8874ae6f37",
"ocr": "",
"orientation": "",
"pages": "0",
"paginated": "",
"releaser": "",
"scan_content": "",
"scan_quality": "",
"scan_size": "",
"scan_type": "",
"scanned": "",
"scimag_archive_path": "10.1183\\9781849841313.eph01.pdf",
"scimag_id": "85284891",
"standarts_id": "0",
"time_added": "2021-07-17 07:19:59",
"time_last_modified": "2021-09-02 15:03:21",
...
...
The result shows that the file object (id=94068096) was added on 2021-07-17 and modified later on 2021-09-02.
You can also retrieve files that were added with a given date range using the mode=last parameter. For example, the following call returns all "files" objects that were added from 2021-09-02 to 2021-09-04.
fyicenter$ curl 'https://libgen.lc/json.php?object=f&mode=last&timefirst=2021-09-02&timelast=2021-09-04' | python -m json.tool | grep md5 | wc
15 30 765
There were more than 15 files added during that 2-day period.
⇒ json.php API - Get "files" by MD5 Hash
2023-09-03, ∼1719🔥, 0💬
Popular Posts:
Why I am getting the "run or save ChromeSetup.exe" pop up box when trying to install Google Chrome 3...
How to Login to Microsoft Teams desktop version on my Windows computer? If you have Microsoft Teams ...
How to join a team in Microsoft Teams? My manager told me we are using Microsoft Teams service. In o...
What is this Website about? This Website provides a collection of Frequently Asked Questions (FAQ) a...
How to make my presentation beautiful by applying a built-in theme provided by Office PowerPoint 200...