Image Webinfo

Extract JSON-/string-style info from Pixiv/Twitter/Booru image pages.

Автор
wklchris
Щоденних встановлень
0
Всього встановлень
16
Рейтинги
0 0 0
Версія
1.3.2
Створено
31.07.2024
Оновлено
15.03.2025
Size
14,1 кБ
Ліцензія
MIT
Відноситься до

Image Webinfo

A Javascript extension to extract JSON-style info from the image board site webpages. It supports pixiv and booru.

Installation

This script needs TamperMonkey extension being installed on your browser.

Recommend: Visiting GreasyFork: Image Webinfo to install the script.

Another way is to install it offline (then you can't receive update when a new version is released on GreasyFork):

  1. Click on the TamperMonkey extension icon and open the Dashboard.
  2. Click on the "+" button to create a new script.
  3. Copy the content of ImageWebInfo.user.js and paste inside the new script.
  4. Click on the File menu and Save.

Usage

Please not that the "Copy as string" doesn't copy all keys of the image info. Change the pixiv_str_keys and booru_str_keys variables in the script accordingly to customize.

Button locations:

  • Pixiv: In an artwork webapge, the Export Webinfo button can be found immediately under the Follow button (upperright).
  • Booru: In an artwork webpage, the Export Webinfo button and the Renamed File link can be found immediately under the Search box (upperleft).

Click the corresponding button, the image info JSON (or string) will be copied to clipboard. Copy format:

  • JSON string: Compatible with Python.
  • Pure string: Separated with tabs (\t) so that it can be directly pasted into spreadsheet or as tab-separated columns.

The renamed filename link is designed for easier image file download:

  1. Right click on the link, the renamed file will then be copied.
  2. In the context menu, choose "Save file from the link".
  3. Use Ctrl + V to paste the copied filename.
  4. Download with organized filenames.

Output Examples

There are some examples. To include more keys in string copy, please customize the variables in the script as described in the Usage section.

  • Twitter example: Omitted. Same behavior as Pixiv, except that the artist_id field is forced to empty.
  • Pixiv example:

    • Export to JSON:
    {"artist":"dmds","artist_id":"88079596","illust_id":"103650025","post_date":"2022-12-16","post_title":"バラバラな感情"}
    
    • Export to String (default keys):
    88079596    2022-12-16  バラバラな感情
    
  • Booru example

    • File link:
    • Auto-copy renamed filename when right click
    • Renamed the download property (may not work when the naming behavior is controlled by the server)
    • Export to JSON (with manual line split here for displaying):
    {"artists":"qys3","copyrights":"vocaloid","characters":"hatsune miku","general":"6+girls, :<, :t, > <,
    ahoge, aqua eyes, aqua hair, bowl, chibi, chopsticks, grin, holding with chopsticks, long hair,
    mini person, minigirl, multiple girls, nail polish, necktie, open mouth, simple background, skirt,
    smile, tears, thighhighs, twintails, very long hair, wavy mouth, white background",
    "booru_id":"3028108","rating_level":"General"}
    
    • Export to String (default keys):
    3028108 General
    

LICENSE

MIT