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 "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, ∼1501🔥, 0💬
Popular Posts:
How to convert a Word document into an MHTML? I have a nice Word document and want to publish it on ...
Where are Microsoft Teams files located on my macOS computer? If you have Microsoft Teams desktop so...
Where to find answers to frequently asked questions about Microsoft Office 365? Here is a collection...
How to resume file transfer in FileZilla FTP Client? I have unfinished file transfer entries in the ...
What are those search options provided on Library Genesis? Library Genesis provides 3 types of searc...