aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/wordpress.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-01-08 20:39:38 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-01-08 20:39:38 -0500
commite79415947da81787fbcbdbf0447d6fa0ecea166a (patch)
treec96811360f1816db1db38a64c6c65ddb7e03ece6 /gallery_dl/extractor/wordpress.py
parent4339ea5f5c0105d112c88fd07581115d7fb4f2a3 (diff)
parent8de58070ee3e55f29966a787fd618632dbf4309b (diff)
Update upstream source from tag 'upstream/1.20.1'
Update to upstream version '1.20.1' with Debian dir bfa6a049d7c503377f35ac76efd1ede7feb78f6a
Diffstat (limited to 'gallery_dl/extractor/wordpress.py')
-rw-r--r--gallery_dl/extractor/wordpress.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/gallery_dl/extractor/wordpress.py b/gallery_dl/extractor/wordpress.py
deleted file mode 100644
index dd7d28a..0000000
--- a/gallery_dl/extractor/wordpress.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright 2021 Mike Fährmann
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-
-"""Extractors for WordPress blogs"""
-
-from .common import BaseExtractor, Message
-from .. import text
-
-
-class WordpressExtractor(BaseExtractor):
- """Base class for wordpress extractors"""
- basecategory = "wordpress"
-
- def items(self):
- for post in self.posts():
- yield Message.Difrectory, post
-
-
-
-BASE_PATTERN = WordpressExtractor.update({})
-
-
-class WordpressBlogExtractor(WordpressExtractor):
- """Extractor for WordPress blogs"""
- subcategory = "blog"
- directory_fmt = ("{category}", "{blog}")
- pattern = BASE_PATTERN + r"/?$"
-
- def posts(self):
- url = self.root + "/wp-json/wp/v2/posts"
- params = {"page": 1, "per_page": "100"}
-
- while True:
- data = self.request(url, params=params).json()
- exit()
- yield 1