Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Site support request e926.net/e621.net #26753
Comments
|
For anyone who wants to implement this, e621 and e926 are based on the Danbooru image board codebase, so they can return raw JSON data if
will return JSON data for post #2428116. The direct link to the post's full-size media file hosted on their CDN can be found at this key: It's also worth mentioning that accessing any part of e621 or e926 requires sending a valid User-Agent to the server in the request headers. urllib3's and requests' are blocked, so you must supply your own. EDIT: I've written an extractor for both sites and opened a PR. Stay tuned. |
|
I didn't even knew about the json possibility. Great to point that out! So my information about the html source code probably should be ignored. According to https://e621.net/help/supported_filetypes the only video file type would be WEBM. |
Checklist
Example URLs
Description
e926 and e621 share the same format and IDs. e926 only contains sfw works, while e621 contains swf and nswf works (so all of the examples also will work with e621.net as domain)
I tried my best to find the (I think) useful information from a source code of the website.
Without having a cookie, a warning message appears at first asking for making sure one is over 18. But the source code for showing the artwork is already existing at this moment.
Example for the last Example URL:
Title
<meta name="og:title" content="kygen drawn by fattydragonite - e926">ID (in case Title is not given maybe?)
<meta name="post-id" content="2362130">Description (copied the whole div for this example; sorry for long line)
Upload date (for file date?)
<meta itemprop="uploadDate" content="2020-08-08T10:59:56-04:00">Video (the src= would be the relevant part I guess)
<video id="image" class="fit-window" data-original-width="2560" data-original-height="1440" loop="loop" controls="controls" poster="https://static1.e926.net/data/sample/d6/74/d674b2fd4e6bb684e6dc6b145c30509b.jpg" src="https://static1.e926.net/data/d6/74/d674b2fd4e6bb684e6dc6b145c30509b.webm"></video>