Skip to content

Commit

Permalink
Add new domain for 69shuba
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi authored and dipu-bd committed Sep 10, 2024
1 parent 6007090 commit 98db2b6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sources/zh/69shuba.cx.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@
}

logger = logging.getLogger(__name__)
search_url = "https://69shuba.cx/modules/article/search.php"
search_url = "%s/modules/article/search.php"


class sixnineshu(Crawler):
base_url = [
"https://69shuba.cx"
"https://69shuba.cx",
"https://69shu.me",
]

def initialize(self):
Expand All @@ -43,8 +44,11 @@ def initialize(self):
def search_novel(self, query):
query = urllib.parse.quote(query.encode("gbk"))
data = f"searchkey={query}&searchtype=all"
headers["Origin"] = self.home_url
headers["Referer"] = search_url % self.home_url

soup = self.post_soup(
search_url,
search_url % self.home_url,
headers=headers,
data=data,
encoding="gbk",
Expand Down

0 comments on commit 98db2b6

Please sign in to comment.