Skip to content

Commit

Permalink
[weverse] add extractors
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenhilton committed Nov 12, 2023
1 parent 807ddde commit 55c8167
Show file tree
Hide file tree
Showing 7 changed files with 775 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3599,6 +3599,55 @@ Description
Download video files.


extractor.weverse.access-token
------------------------------
Type
``string``
Default
``null``
Description
Your Weverse account access token.

The token can be found in the ``we2_access_token`` cookie in the
``.weverse.io`` cookie domain after logging in to your account.

An invalid or not up-to-date value will result in
``401 Unauthorized`` errors.

If this option is unset, and the cookie is not used, an extra HTTP
request will be sent with your ``username`` and ``password`` to
attempt to fetch a new token.


extractor.weverse.embeds
-----------------------------
Type
``bool``
Default
``false``
Description
Control behavior on embedded content from external sites.

* ``true``: Extract embed URLs and download them if supported.
* ``false``: Ignore embeds.


extractor.weverse.videos
------------------------
Type
* ``bool``
* ``string``
Default
``true``
Description
Control video download behavior.

* ``true``: Download videos.
* ``"ytdl"``: Download videos using `youtube-dl`_. Requires ``yt-dlp``.
Only supports ``Moment`` and ``Media`` posts.
* ``false``: Skip videos.


extractor.ytdl.enabled
----------------------
Type
Expand Down
6 changes: 6 additions & 0 deletions docs/supportedsites.md
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,12 @@ Consider all sites to be NSFW unless otherwise known.
<td>Albums, Articles, Feeds, Images from Statuses, User Profiles, Videos</td>
<td></td>
</tr>
<tr>
<td>Weverse</td>
<td>https://weverse.io/</td>
<td>Feeds, Media Files, Media Categories, Moments, Posts, User Profiles</td>
<td>Supported</td>
</tr>
<tr>
<td>WikiArt.org</td>
<td>https://www.wikiart.org/</td>
Expand Down
1 change: 1 addition & 0 deletions gallery_dl/extractor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
"webmshare",
"webtoons",
"weibo",
"weverse",
"wikiart",
"wikifeet",
"xhamster",
Expand Down
Loading

0 comments on commit 55c8167

Please sign in to comment.